Repository navigation
feat(work-panel): show subagents as closable transcript tabs - #1027
Merged
Merged
Conversation
added 2 commits
September 24, 2026 18:30
Clicking a delegation topology node replaced the whole work-panel tab strip with a single dock overlay, so parallel subagents could not be viewed side by side and every ended detail had to be reopened one at a time. Give subagents a first-class tab kind instead: each delegation opens (or activates) a normal closable tab keyed by its delegation id, so N subagents yield N coexisting tabs with the standard activate, reorder, close, and per-session persistence affordances. No tab opens automatically; ended delegates' tabs stay until closed. The tab renders the delegation as a conversation instead of a summary card: every Task call of the resume chain shows its prompt as a user row and the delegate's thinking, tool, and answer rows beneath it, reusing the main transcript's message-list language, so follow-up prompts read as the next user turn. A disabled two-row composer with an in-field read-only hint closes the tab; display-only by design, since the runtime has no renderer-to-delegate send path. Removes the subagentPanel overlay state, the dock takeover header, and SubagentPanel/SubagentDetail; delegation chain maps are now shared by the topology grouping and the new transcript builder. Specs and E2E plan updated (E2E-248); source-contract tests migrated to the tab model.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Redesigns how subagent details are displayed in the work panel: the standalone dock overlay becomes a regular, closable work-panel tab (same mechanism as Review), and the tab content becomes a message-list style transcript with a read-only composer.
Why
Previously clicking a subagent node in the transcript replaced the entire work-panel tab strip with a single dock overlay ("independent side page"), so multiple subagents could not be viewed side by side and users had to reopen one subagent at a time (issue #917 feedback). The tab strip already supports many dynamic, reorderable, session-scoped tabs — subagents can simply be one more kind.
Behavior
subagenttab (subagent:<delegationId>); re-clicking an already-open subagent activates its tab. No tab is auto-opened when a subagent starts.explorer); duplicate names are disambiguated asexplorer#2,explorer#3, …Taskcall in the resume chain —user: task prompt→ delegate rows (toolrows, thinking, answer bubbles, markdown), matching the main MessageList visual language; follow-up prompts appear as additional user turns.subagentPaneloverlay state and actions,SubagentPanel/SubagentDetaildock surfaces, the panel takeover header/back button, and the transcript-search → subagent-panel focus handoff (the dock target no longer exists).Notes
Tests