Uh oh!
There was an error while loading. Please reload this page.
feat(tui): show subagent status in sidebar - #36042
Conversation
The following comment was made by an LLM, it may be inaccurate: Based on my search, here are the related PRs that might be relevant to this feature: Most Related:
Also Related:
These are all related features in the subagent/TUI sidebar ecosystem, but #36042 appears to be the only PR implementing this specific feature (showing subagent status counts and titles in the sidebar). The PR is appropriately scoped as a minimal feature separate from the cost rollup work (#25712). |
Ported from upstream anomalyco#36042.
Ported from upstream anomalyco#36042.
* feat(tui): show subagent status in sidebar Ported from upstream anomalyco#36042. * fix(tui): show nested subagents in sidebar via collectSubtree Addresses Opus review of PR #38: the sidebar only listed direct children, so nested subagents never appeared. Derive the full subagent subtree reactively from the store via the shared collectSubtree helper, dropping the redundant createResource and manual session.updated/deleted subscriptions (which also removes a stale-snapshot window).
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
No issue. Related: #4865 and #25712.
Type of change
What does this PR do?
Adds a small built-in TUI sidebar section for child sessions started by subagents.
The panel reads the existing synced session list and session status map, filters children by the current session ID, and shows a compact count plus up to five child session titles. Running children use the warning color and completed children use muted text.
This is intentionally smaller than #4865: it does not add navigation or keybindings. It is also separate from #25712, which focuses on subagent cost rollups.
How did you verify your code works?
bun run --cwd packages/tui typecheckI also tested the same sidebar behavior locally in a custom build before reducing this PR to the minimal upstream diff.
Note: the repository pre-push hook currently runs the full workspace typecheck, which failed on an existing
packages/app/src/custom-elements.d.tsparse error unrelated to this TUI change. The package-level TUI typecheck above passes.Screenshots / recordings
Not included. The panel renders only when the current session has child sessions, with text like
Subagents 2 running, 1 doneand one line per child session.Checklist