Commit 29a02a8
committed
fix: prevent live branch sync from clearing thread metadata on detached HEAD
When the repository enters detached HEAD state (e.g., during rebase,
bisect, or manual commit checkout), gitStatus.branch becomes null.
resolveLiveThreadBranchUpdate would return { branch: null }, causing
persistThreadBranchSync to permanently clear the thread's branch
metadata.
Add a guard to skip syncing when gitStatus.branch is null, since
detached HEAD is a transient state and the stored branch association
should be preserved.1 parent 6b7c570 commit 29a02a8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments