[Bug]: Sidebar retains deleted worktree/branch while right status card updates correctly#24935
What happens
After deleting a thread's branch and worktree, the left sidebar still displays the deleted branch/worktree association. The right status card correctly stops showing it, leaving the two views inconsistent.
Steps to reproduce
- Start a thread attached to a Git worktree and branch.
- Delete the branch, then delete the worktree and its Git registration from the thread.
- Compare the thread row in the left sidebar with the right status card.
Expected behavior
The sidebar clears the deleted branch/worktree association and agrees with the right status card.
Actual behavior
The sidebar retains the deleted association. In the supplied screenshot, the Write Random Text thread still shows t3/random-text-field after the conversation reports deletion of that branch and worktree t3-88ed6f2f. The right status card no longer shows the association and offers Initialize Git.
Environment
macOS desktop app. App version not supplied. Reported 2026-10-25.
Supporting evidence
User-provided screenshot: Screenshot 2026-10-25 at 1.27.57 PM.png. The visible state is described above; the image is not hosted in this issue.
Related
#11078 reports a stale sidebar branch label after switching worktree/branch. This report covers deletion of the branch and worktree; a shared cause has not been verified.