Repository navigation
Pop a delegated child thread out to top level #34230
colonelpanic8
started this conversation in
Ideas
Replies: 1 comment
|
Implementation is up in #34236: server command and event, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sometimes a delegated child (a
delegate_tasksubagent thread) turns into work I want to keep going myself. It already has the context, the worktree, and a live provider session, but it stays tied to its parent. It doesn't get a sidebar row, my follow-ups in it report back to the parent agent, and the parent's Stop and settle still reach it. Today the only way to keep it visible is pinning, and pinning a subagent thread succeeds without any visible effect (#31787).Proposal
Add a Pop out to top level action for a delegated child thread, so it becomes an ordinary thread in place.
t3_thread_organize(pop_out), but a thread can't pop itself out, so a child can't escape its parent's control on its own.parentThreadId: null,relationshipToParent: null), with an optionaldetachedFromfield recording the old parent. So the thread gets a sidebar row, can be pinned and settled like any other thread, and its later turns no longer report to the parent. The parent's Stop and settle no longer reach it. The parent's Lineage panel still lists it as "popped out" instead of dropping it silently.Relation to #31157
#31157 proposes nesting child threads in the sidebar. A comment there describes a fork with detach/reattach as part of a larger nesting and grouping change. This proposal is just the detach half, on its own and independent of how the sidebar ends up showing children, so it could land first and the nesting work could build on it.
I have an implementation in progress against
mainand will link the PR here. A yes or no on the direction and the "finished tasks only" restriction would help.All reactions