Skip to content

feat(subagents): Show child agents in the dashboard transcript - #2112

Merged
dcramer merged 2 commits into
mainfrom
feat/subagent-dashboard-markers
Oct 13, 2026
Merged

dcramer merged 2 commits into
mainfrom
feat/subagent-dashboard-markers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

The dashboard's subagent rows and transcript drawer are built from subagent_started / subagent_ended events, but nothing in the runtime wrote them. Those events date from the advisor flow. A real spawnAgent child showed up only as a plain tool call followed by a plain result Event Turn, so there was no child row, status, or drawer. Part of #2105.

  • Each agent invocation now writes subagent_started to its parent Conversation before the child mailbox append, so the child cannot end before its start is recorded. For a spawnAgent call it carries the tool call id, so the dashboard replaces the tool row with the child row.
  • When the invocation is terminal, the worker writes subagent_ended before it sends the parent result. Both events use idempotency keys from the agent invocation id, so retries and heartbeat repairs do not add rows.
  • blocked is now its own outcome (for example, a child that needs auth) instead of being shown as error.
  • The dashboard-qa mock fixture now uses the real spawnAgent shape, and its second child is blocked. The e2e child-transcript test captures conversation-child-agents and conversation-child-agent-drawer for frameshift.
  • To stay under the 1,000-line limit, agent-invocation-work.test.ts is split. Spawn, nested delivery, and repair scenarios move to agent-invocation-spawn.test.ts, and shared setup moves to tests/fixtures/agent-invocations.ts. The runtime-composition and agent-run counts stay in the existing file, so the test-architecture baseline does not change.

Every child row is still labeled agent. Showing the child name or task needs a new field on the event, which I left for a follow-up.

via David Cramer.

--

View Junior Session [Sentry]

Write subagent_started and subagent_ended events to the parent Conversation for each agent invocation, so the dashboard subagent rows and drawer render real spawnAgent children. Add a blocked outcome, update the dashboard QA fixture to the spawnAgent shape, and capture visual snapshots of the child rows and drawer.

Refs #2105

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 13, 2026 9:54pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

7 screenshot changes — 3 changed · 4 added · 0 removed

Review screenshots in Frameshift

Automation Editor Conflict · Mobile
Automation Editor Conflict · Mobile
Changed
Automation Versions · Desktop
Automation Versions · Desktop
Changed
Automation Versions · Mobile
Automation Versions · Mobile
Changed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bf79ffe. Configure here.

Store the parent spawnAgent tool call id on the agent invocation so a repaired mailbox append writes the same subagent_started event, and write subagent_ended from the heartbeat result repair so a crash after the child ack does not leave the row running.
@dcramer
dcramer merged commit 61dcde9 into main Oct 13, 2026
48 checks passed
@dcramer
dcramer deleted the feat/subagent-dashboard-markers branch October 13, 2026 22:23

This branch was successfully deployed

1 active deployment
Preview – junior-docs — b9de2f06 Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant