Repository navigation
fix(subagents): align subagent view with official (hide composer, full SubagentBar, child actions) - #1304
Merged
Conversation
…l SubagentBar, child actions)
Hona
marked this pull request as ready for review
November 26, 2026 08:57
Hona
added a commit
that referenced
this pull request
Nov 27, 2026
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.
Aligns the subagent (child session) view with official
anomalyco/opencode(packages/app/src/session/composer/{region.tsx,session-composer-region.tsx,subagent-bar.tsx,timeline-actions.ts},packages/session-ui/src/message/message-content.tsx).Summary
apps/desktop/src/shell/view/composer.rs,crates/session-view/src/composer/mod.rs,apps/desktop/src/shell/view/session.rs):session_view::composer::request_dockso child sessions render only an active question or permission dock (spaced8 ptaboveSubagentBar, matchingsession-composer-region.tsx:68-98) without rendering the prompt composer card, queue tray, or free-limit panel.story_composeron child sessions as well assession_body.SubagentBarmetadata and surface (features/subagents/src/{lib,reply}.rs,apps/desktop/src/session/timeline/subagents.rs):SubagentModel+SubagentsHost::subagent_modelresolvinginfo.model(or falling back to the last assistant message's model in the child transcript, matchingregion.tsx:565-583) through provider/model display labels.build_status_line(subagent-bar) to show all known metadata separated by middle dots: status icon, status label, elapsed duration, capitalized agent name, provider/model name, and dimmed variant (opacity 0.66, no separator), onp.bg_basewith the right-alignedMain session(ESC) button (subagent-bar.tsx:44-112).apps/desktop/src/session/timeline/subagents.rsandfeatures/subagents/src/reply.rs:Escapeon a child session always navigates back to the parent session (region.tsx:201), even if the main session's composer holds a draft.apps/desktop/src/shell/view/session/host.rs:can_switch_model()returnsfalseon child sessions (timeline-actions.ts:45), hiding Switch model on error cards.features/history/src/rewind/mod.rs: user message menus on child sessions omitFork from here,Revert/Undo, and pending queue/delete items, leaving only timestamp andCopy message(timeline-actions.ts:36-45,message-content.tsx:471-489).apps/desktop/src/session/composer/dropzone.rs: file drops and hover overlays are ignored on child sessions where no composer exists.apps/desktop/src/shell/view/header.rs: includedinfo.parentinsession-headermemo inputs so placeholder-to-child transitions always rebuild breadcrumbs cleanly.Verification
45782791498on head1785b0bbdb: green (guardrails,build-macos,build-windows (x64),build-windows (arm64),build-linux (x64); Linux arm64 skipped).c1360881ed) on--scene subagent(all passes exit 0):composer/promptpresent) and truncatedDone / 20m 00sbar (subagent-modelabsent). After shows NO prompt composer (composer/promptabsent), compact header (lumen / Fix flaky reconnect in the ev... / Review the reconnect change, no rename button or...menu), and fullSubagentBar(Done,20m 00s,General,anthropic / Claude Opus 5.5 High,Main session ESC).abc) on child session:composer/promptremain absent andabcis not typed into any hidden composer.Escapeon child session: navigates back to parent session (subagent-barabsent, parent session composer shown).scripts/guardrails.ps1): 9/9 passed;bun scripts/web-clock.ts: 0 violations.