Skip to content

feat(app): show running subagents and shells in the session header - #53247

Merged
Hona merged 5 commits into
anomalyco:v2from
Hona:session-running-menu
Oct 5, 2026
Merged

Hona merged 5 commits into
anomalyco:v2from
Hona:session-running-menu

Conversation

@Hona

@Hona Hona commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Running subagents and background shells are now one click away in the session header, instead of two clicks deep in the session summary.

Before After
Stop on hover Click a shell
  • Label: N workingΓò¼├┤Γö£├ºΓö¼┬¼ when only subagents run, N running once a background shell runs too. It shimmers while work runs.
  • Rows: agent-colored progress icon, agent name and task. A subagent row opens its session. A shell row scrolls to the call, expands the collapsed Used group and expands the call.
  • Stop: a hover X, or Delete on a highlighted row. It uses the same SDK calls as the TUI composer tabs. The menu stays open, and the row leaves when the work ends.
  • Scope: all running subagents, foreground or background. Background shells only, because the timeline already shows a foreground shell at the bottom.
  • The session summary's N background tasks running row is removed, with its translations.

Inside a subagent

Swap between siblings Details
  • The menu lists the parent's running work, so sibling subagents are one click away. The current subagent is marked (aria-current).
  • Shell rows and starting subagents open the parent session on that call: the route carries it, and the parent timeline scrolls to it and expands it instead of scrolling to its end.
  • Session details now show for subagents. The workspace row is read-only and the "Move to worktree" hint is hidden: a subagent never moves on its own.
flowchart LR
  B[blocking subagents] --> M[SessionRunningMenu]
  T[background tasks] --> M
  M -->|subagent row| N[navigateToSession]
  M -->|shell row| R["virtualizer.revealPart: open group + call, scroll"]
  M -->|X / Delete| S{type}
  S -->|subagent| I["api.session.interrupt({ sessionID })"]
  S -->|shell| K["api.shell.remove({ id, location })"]
Loading
  • Row icons use the theme's --v2-agent-<name>-solid tokens, so Explore and Build match the timeline cards; other agents stay neutral.
  • The e2e mock server gains DELETE /api/shell/:id.

Adds a running-work menu next to the session title. Rows open subagent sessions, reveal and expand background shell calls, and stop work with a hover X or Delete. Replaces the background tasks row in the session summary.
@Hona
Hona requested a review from Brendonovich as a code owner October 5, 2026 00:02
Copilot AI balanced review requested due to automatic review settings October 5, 2026 00:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Hona added 4 commits October 5, 2026 10:06
Inside a subagent, the running menu lists its parent's work, marks the current subagent, and switches to a sibling in one click. Session details now show for subagents too, without offering to move them to another worktree.
The route that opens the parent carries the call to reveal. The timeline reveals it from its existing activation, where it would otherwise scroll to the end, and the hash scroll leaves that entry alone.
@Hona
Hona merged commit 3a861ff into anomalyco:v2 Oct 5, 2026
11 checks passed
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants