You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-cluster threads by the PR, PR stack, or issue they belong to
#43714
One piece of work usually spans several threads: the thread that wrote it, a review thread, delegated subagents and child tasks, a follow-up that watches CI or a rollout, sometimes a thread on another linked machine. A PR stack multiplies that: three layers can easily mean eight or more threads.
T3 Code already tracks most of these links. A thread knows its linked pull request and branch PR, the stack layers around it, the issues linked to it, its worktree and branch, and its parent, fork, subagent and delegated-from lineage. The sidebar still lists those threads as unrelated rows, so finding "everything for PR #123" or "everything for ENG-42" means scanning by title.
Proposal
An optional sidebar grouping that is derived from those links, so nobody has to file threads by hand:
By pull request. Threads linked to the same PR form one collapsible cluster. The header shows the PR number, title and state.
By PR stack. The clusters for each layer of a stack nest under the stack, bottom to top.
By issue. Threads linked to the same issue (GitHub, Linear, …) cluster under it. If the issue produced a PR, that PR's cluster sits inside the issue's.
Lineage folds in. Subagents, side chats and delegated tasks, including ones on linked environments, join their parent's cluster.
Lifecycle on the cluster. The header shows an aggregate status (working, needs you, waiting, merged or closed). When the PR merges or the issue closes, the whole cluster can settle, reusing the existing settle-on-merge behaviour.
Fallbacks. Threads with no link keep today's grouping. Worktree or branch could serve as a secondary key, which would also cover [Feature]: Group threads by worktree #6751.
For agents:t3_thread_list and t3_thread_search could take a pull request or issue filter and return each thread's cluster key. An orchestrating agent could then ask for all threads on a PR or issue without walking every thread.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
One piece of work usually spans several threads: the thread that wrote it, a review thread, delegated subagents and child tasks, a follow-up that watches CI or a rollout, sometimes a thread on another linked machine. A PR stack multiplies that: three layers can easily mean eight or more threads.
T3 Code already tracks most of these links. A thread knows its linked pull request and branch PR, the stack layers around it, the issues linked to it, its worktree and branch, and its parent, fork, subagent and delegated-from lineage. The sidebar still lists those threads as unrelated rows, so finding "everything for PR #123" or "everything for ENG-42" means scanning by title.
Proposal
An optional sidebar grouping that is derived from those links, so nobody has to file threads by hand:
For agents:
t3_thread_listandt3_thread_searchcould take a pull request or issue filter and return each thread's cluster key. An orchestrating agent could then ask for all threads on a PR or issue without walking every thread.How it relates to other ideas
pr:owner/repo#123,issue:ENG-42orstack:<id>, so one filter UI serves both user tags and lifecycle links.#36187 was closed with a note that thread organization would get a bigger pass later. This is meant as input for that pass.
Drafted with Claude Opus 5.5.
All reactions