Skip to content

Commit 25168c8

Browse files
committed
fix(autosave): include branchName in persisted snapshot
updateTaskBranch (used by MergeDialog's branch mismatch fix) updates branchName in the store, but the autosave snapshot didn't track it. If branchName was the only field that changed, the debounced save would not trigger, potentially losing the update on app restart. https://claude.ai/code/session_01McqHYwdaCNNXqPQWGBTGS4
1 parent ab434ae commit 25168c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/store/autosave.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function persistedSnapshot(): string {
4343
name: t.name,
4444
gitIsolation: t.gitIsolation,
4545
baseBranch: t.baseBranch,
46+
branchName: t.branchName,
4647
savedInitialPrompt: t.savedInitialPrompt,
4748
collapsed: t.collapsed,
4849
},

0 commit comments

Comments
 (0)