Skip to content

Deleting a thread's worktree and branch strands the thread with no branch selector [📥] #1047

Description

@donjor-agent

🤖 claude/anthropic claude-opus-5 (medium)

Origin: stranded threads ec5252ec and 8f8e029e; repro on an isolated dev home.

Repro

  1. Thread on a worktree
  2. ghb pr merge: worktree and branch deleted
  3. Reopen thread, send
Worktree present Worktree and branch gone Send
0-baseline-worktree-present.png 1-before-worktree-removed.png 2-before-send-dropped.png

Chain

worktree + branch deleted
  ├─ git status in missing cwd -> isRepo: false
  │   └─ BranchToolbar: showGitControls = false -> no selector
  ├─ send -> client socket drops -> turn never dispatched
  │   └─ "Not connected: message not sent"
  └─ ensureThreadWorktree -> recreate fails: no branch

Upstream

Ref State
#9852 recover threads after worktree deletion open, idle since 2026-09-05
#7839 recreate worktree before turn in fork
#8263 related report

Fork action

Trial: second thread stranded before #9852 merged.

  • Port: #9852, Fork-Upstreamable: yes
  • Auto-move: thread to project root checkout
  • Send: stop the socket drop

Close: stranded thread shows its selector, then continues on the root checkout.

Activity

  1. added
    upstream-watchthe fork waits on this upstream issue or pull request; re-read at every rebase orient step
    on Sep 16, 2026
  2. changed the title [-]Deleting a thread's worktree and branch strands the thread with no branch selector [📥][/-] [+]Deleting a thread's worktree and branch strands the thread with no branch selector [📡#110][/+] on Sep 16, 2026
  3. changed the title [-]Deleting a thread's worktree and branch strands the thread with no branch selector [📡#110][/-] [+]Deleting a thread's worktree and branch strands the thread with no branch selector [📥][/+] on Sep 16, 2026
  4. added 4 commits that reference this issue on Sep 27, 2026
    6910a8a
  5. 220 remaining items

  6. added 15 commits that reference this issue on Nov 13, 2026
    8544729
    b5f2fe5
    482839a
    093e842
    80e4a48
    7498876
    e1dc355
    6c7ac42
    4c96c68
    68c0276
    b3888ca
    7cafe5c
    232e355
    5844dd6
    f58c8e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    uivisible surface, layout, interactionupstream-watchthe fork waits on this upstream issue or pull request; re-read at every rebase orient step

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions