GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Live Subagents sidebar section in the TUI · Issue #41249 · anomalyco/opencode

[FEATURE]: Live Subagents sidebar section in the TUI #41249

New issue
Copy link
New issue
Copy link
Closed
Closed
[FEATURE]: Live Subagents sidebar section in the TUI#41249
Copy link
Assignees
kommander

Description

@giovannic96
giovannic96
opened on Aug 8, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I built a live "Subagents" sidebar section as an external TUI plugin (npm: opencode-subagents-view, source: https://github.com/giovannic96/opencode-subagents-view). It shows direct child sessions for the current session, with a per-row status icon, live activity text (current tool/step), and idle-run reset behavior when a new run starts.

I think this fits better as a built-in feature than an external plugin, since it's TUI-level, uses live session events already part of the app, and users would expect it to be built in rather than installed separately.

Related discussion I found:

  • [FEATURE]: subagents view in the TUI #15223 (subagents view in the TUI)
  • [FEATURE]: Live session status panel in sidebar + background session completion notifications #28175 (live session status panel in sidebar)
  • feat(tui): show subagent status in sidebar #36042 (existing PR adding a thinner version of this, count + up to 5 titles, no per-row status icon or live activity)

Note: this has been discussed before, see links above, I'm linking them for context, not filing a duplicate.

I have a complete, tested implementation adapted to match this repo's conventions (packages/tui/src/feature-plugins/sidebar/*, same order/id/state-access patterns as context.tsx/lsp.tsx/todo.tsx) ready to open as a PR once there's a green light on the direction.

Reacted by Pierre Beucher, Hannah Vivian Shaw and Stefan

Activity

  1. giovannicala4321
    marked [FEATURE]: Live Subagents sidebar section in the TUI #41248 as a duplicate of this issue on Aug 8, 2026
  2. github-actions
    assigned
    kommander
    on Aug 8, 2026
  3. giovannic96 commented on Aug 8, 2026

    @giovannic96
    giovannic96
    on Aug 8, 2026
    Author
    More actions

    Here's a working proof-of-concept (ported from an external plugin I built and published first: opencode-subagents-view) showing a "Subagents" sidebar section, placed between the built-in LSP and Todo sections. It tracks child sessions spawned via the task tool and shows live status + activity.

    Single subagent, active

    Shows the status icon, title, and a live activity line (current tool call) wrapped with a hanging indent so continuation lines stay aligned under the title instead of falling back to column 0.

    Image

    Three subagents running in parallel

    Each row updates independently with its own live activity as the subagent works (shell commands, file reads, etc).

    Image

    Collapsed

    Click the header to collapse/expand the Subagents section; the active count stays visible either way.

    Image

    Mixed active/idle

    As subagents finish one by one, they flip to an idle (grey) state while others keep running.

    Image

    All finished

    Once everything is idle, activity text clears and the count resets to 0.

    Image



    Happy to open a PR for this (packages/tui/src/feature-plugins/sidebar/subagents.tsx + a companion tracker file, registered at order: 350) whenever it'd be useful. Let me know if you'd want any changes to the design/behavior first.

    Reacted by pedroGarrido1806, Andrada Gug, Hueristic and Abdulla Abdurakhmanov
    Reacted by Angelo Puglisi
  4. pedroGarrido1806 commented on Aug 10, 2026

    @pedroGarrido1806
    pedroGarrido1806
    on Aug 10, 2026
    More actions

    We've hit this exact gap, no visibility into subagent status/activity in the TUI while a task is running. We are working building some harness using Opencode, and this would help a lot! Would use this immediately if merged.

    Reacted by giovannicala4321, Hueristic and Giovanni Calà
    Reacted by giovannicala4321 and Giovanni Calà
  5. andradagug commented on Aug 12, 2026

    @andradagug
    andradagug
    on Aug 12, 2026
    More actions

    This feels like a very practical improvement for anyone using subagents regularly. A status alone tells you that a subagent is running, but seeing what it’s actually doing gives you a better sense of its progress and whether you need to step in. Would definitely use this.

    Reacted by giovannicala4321, Hueristic and Giovanni Calà
    Reacted by giovannicala4321 and Giovanni Calà
  6. giovannic96 commented on Aug 20, 2026

    @giovannic96
    giovannic96
    on Aug 20, 2026
    Author
    More actions

    @kommander Following up on this since I have the implementation ready and tested.

    Given that #36042 was recently closed by automated cleanup and this proposal builds on the same direction with live per-subagent status/activity, I'd be happy to open the PR if this direction looks good.

    Reacted by Hueristic
  7. iceteaSA
    marked [FEATURE]: List active subagents in the sidebar #46110 as a duplicate of this issue on Aug 29, 2026
  8. iceteaSA commented on Aug 29, 2026

    @iceteaSA
    iceteaSA
    on Aug 29, 2026
    More actions

    I filed a duplicate of this (#46110) before finding yours — closed it, this is the original. #46109 implements it: a "Subagents" sidebar section listing the session's child sessions, click to open one.

    One difference from your plugin worth flagging. I filtered to active subagents, because an orchestration session here accumulated hundreds of child sessions and listing all of them made the sidebar unusable. The non-obvious part: you can't derive "active" from the parent's task tool part — a background dispatch completes that part the moment the child spawns, so of the last 300 task parts on my machine 270 read completed and none read running, including one that was actively running at the time. Liveness has to come from the child session's own status (api.state.session.status(childID), where idle sessions are simply absent from the map). Cost me a shipped-but-invisible feature to find.

    Your live activity text (current tool/step) is a nice touch mine doesn't have.

    Reacted by Hueristic and Giovanni Calà
    Reacted by Giovanni Calà
  9. Hueristic commented on Aug 30, 2026

    @Hueristic
    Hueristic
    on Aug 30, 2026
    More actions

    Came here to suggest just this.

    Reacted by giovannicala4321 and Giovanni Calà
  10. Codestz commented on Sep 25, 2026

    @Codestz
    Codestz
    on Sep 25, 2026
    More actions

    I built this as a plugin, opencode-cockpit's Subagents bay (https://github.com/Codestz/opencode-cockpit), working on 1.18 and 2.0.15. That could be useful as a reference for #46109. Things that turned out to matter once people used it:

    • Clicking a subagent should show its whole run, not just its current tool, laid out like the main chat (command boxes, collapsed reads, thinking).
    • Users message subagents directly. When the subagent has already finished, its answer never reaches the parent (see subagent: background subagent's resumed turn completes but the parent session never receives the completion notification #50751), so the parent needs to be told, ideally without starting a turn.
    • Follow-ups go better when the parent continues the same subagent (task_id/sessionID) than when it starts a new one. Parents rarely do that unless prompted, because the id scrolls out of context.
    • Stopping a subagent needs to tell the parent why, or it treats the stop as a failure and relaunches (refactor(core): carry typed job outcomes for stops #46721 fixes this).

    Happy to share measurements or help test #46109.

  11. iceteaSA commented on Sep 25, 2026

    @iceteaSA
    iceteaSA
    on Sep 25, 2026
    More actions

    Thanks, this is useful. On the first point, #46109 already does that: clicking a row, active or recent, opens that subagent's session in the normal session view, so you get its whole run rather than the current tool. The other three are about the task tool and messaging rather than the sidebar, and I was asked to keep this PR small, so I've left them out. For continuing the same subagent, #34947 lets the parent give a subagent a name (task_id: "explore-auth"), which is easier to reuse than a generated id once it has scrolled out of context. Stop reasons are #46721 and the finished-subagent reply is #50751, as you say. Testing #46109 would be welcome.

  12. neriousy commented on Oct 21, 2026

    @neriousy
    neriousy
    on Oct 21, 2026
    Member
    More actions

    Thanks for building this, and for the detailed screenshots. V2 now has a built-in Subagents view: press ↓ in the prompt (the session.child.first keybind) or click the subagent count in the prompt footer to open the Subagents tab. It lists the session's subagents with their status, switches between active and finished ones, opens a subagent with Enter, and interrupts a running one with ctrl+d (https://opencode.ai/v2/docs/cli/keybinds).

    We're not planning a second sidebar version on top of that, but TUI plugins can render into the sidebar (the sidebar.content slot), so your plugin is still a good option for anyone who wants the sidebar layout with live activity text. Closing as completed.

  13. neriousy
    closed this as completedon Oct 21, 2026
  14. edwardgra4ev commented on Nov 22, 2026

    @edwardgra4ev
    edwardgra4ev
    on Nov 22, 2026
    More actions

    For search visitors landing here: both surfaces now have community plugins.

    • TUI — opencode-subagents-view by @giovannic96, as described above.
    • Desktop 2.3.x — https://github.com/edwardgra4ev/opencode-subagent-dashboard: persistent side panel per session, direct children as a tree by parentID, status read from the child session's own status, plus token buckets, cost and elapsed time, click a row for detail or open the child's chat in a new tab.

    Neither is built in. The request covering both surfaces is #57097.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.