[Bug]: No way to manually unlink a thread from a PR — a wrong auto-association permanently poisons the thread #7517
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
packages/client-runtime (affects apps/web, apps/desktop, and apps/mobile)
Steps to reproduce#
The mis-association is intermittent in normal use — it depends on the checkout's branch being shared or reused, not on anything done in the thread. Deterministic version:
- Have a thread whose checkout is on a shared/long-lived branch (
dev,main, or a reused feature branch). - Open a PR from that branch that has nothing to do with the thread's work.
- The thread picks up that PR's badge (per #5514, association is keyed on branch name alone).
- Close that PR without merging.
- Keep working in the thread — send a message, let the agent finish the turn.
- Observe the sidebar after each completed turn.
Expected behavior#
There should be a way to break the association by hand: an Unlink PR action on the thread, and ideally Link to PR #… to point it at the right one. Once unlinked the thread should behave as a thread with no PR — no terminal-PR settle short-circuit — and the link should not silently reattach on the next turn.
Actual behavior#
The link can only be created and changed automatically; there is no way to detach it. A single wrong auto-association is permanent for the life of the thread. Combined with #6417, the thread re-settles after every completed turn because its "own" PR is closed, and un-settling doesn't stick — the next message clears the override. The thread becomes unusable and the only recovery is to abandon it and start a new one, losing the history.
Impact#
Major degradation or frequent failure
Version or commit#
0.0.33 — macOS desktop app and the remote t3 server both on 0.0.33.
Environment#
macOS 26.1, T3 Code (Alpha) desktop 0.0.33, connected to a remote t3 server on Rocky Linux 9.5 (Node 20.20.0). GitHub repo. Classification is shared client-runtime logic, so this isn't provider-specific.
Related issues#
- #5514 — PR adoption keyed on branch name; opening a release PR retroactively adopts every thread on the branch.
- #4970 — reused long-lived branch keeps a historical merged PR.
- #6417 — closed-PR threads auto-settle again after every completed turn.
Those three propose fixing the matching. This asks for the escape hatch needed regardless: even with perfect heuristics, a per-thread manual override is the only guaranteed recovery, and it's the smallest fix for users stuck today.
Workaround#
None that preserves the thread. Creating threads on a unique per-thread branch or worktree avoids the mis-association up front. Un-settling doesn't hold; disabling Auto-settle inactive threads doesn't help — the closed-PR short-circuit runs first.
juliusmarminge closed this
Sign in to join this conversation.
Fixed by #10839 — link and unlink now live in the PR More menu (multi-PR linking), so a wrong auto-association can be broken by hand.