Skip to content

ref(agents): Use one status list for every agent - #4440

Merged
dcramer merged 2 commits into
mainfrom
ref/child-agent-statuses
Nov 26, 2026
Merged

dcramer merged 2 commits into
mainfrom
ref/child-agent-statuses

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Child agents had their own status words, so the dashboard, the API, and listAgents told the same child's state in different ways (#3060). Now every agent list uses one status list (pending, running, paused, idle, failed, stopped), and how a child's last Turn ended (done, blocked, failed) comes only from lastResult. The child agent API also drops the error field that nothing set and the duplicate task; a visible child always sends title, null when its spawn gave none.

via @dcramer.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 26, 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 Nov 26, 2026 8:37am UTC

Request Review

@dcramer

dcramer commented Nov 26, 2026

Copy link
Copy Markdown
Member

Do we not have an idle status? Like, generally speaking, all agents should share the same status enums. So I don't want to have different paths for these

@sentry-junior

sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Agreed, there shouldn't be a separate child path. Today there are three status lists: Conversation status (pending/running/paused/idle/failed), the listAgents list (Conversation status plus stopped), and this child-only list. The child-only list is the odd one out.

This PR will drop CHILD_AGENT_STATUSES and list every agent with the one list that listAgents already uses, so a finished child is idle. Blocked, done or failed comes from lastResult, the same as listAgents. I'll push that change to this PR.

@sentry-junior
sentry-junior Bot force-pushed the ref/child-agent-statuses branch from f5a181e to c526e04 Compare November 26, 2026 06:36
@sentry-junior sentry-junior Bot changed the title ref(agents): Drop child agent statuses that nothing sets ref(agents): Use one status list for every agent Nov 26, 2026
@dcramer
dcramer marked this pull request as ready for review November 26, 2026 07:21
@sentry-junior
sentry-junior Bot requested a review from dcramer November 26, 2026 07:21
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 26, 2026
Base automatically changed from ref/child-agent-names to main November 26, 2026 07:53
@sentry-junior
sentry-junior Bot force-pushed the ref/child-agent-statuses branch from edb1ad9 to bdc9d7d Compare November 26, 2026 08:20

@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 using default effort and found 1 potential issue.

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 bdc9d7d. Configure here.

sentry-junior Bot and others added 2 commits November 26, 2026 08:25
No code sets pending or paused on a child agent, so the API schema and
listAgents no longer accept them.

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

Copy link
Copy Markdown
Contributor

19 screenshot changes — 19 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Overview Run Details · Desktop
Automation Overview Run Details · Desktop
Changed
Conversation Agent Messages · Desktop
Conversation Agent Messages · Desktop
Changed
Conversation Agent Messages Light · Desktop
Conversation Agent Messages Light · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Show 12 more changed screenshots
Conversation Child Agent Drawer · Desktop
Conversation Child Agent Drawer · Desktop
Changed
Conversation Child Agent Drawer · Mobile
Conversation Child Agent Drawer · Mobile
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Pending Attachment · Desktop
Conversation Pending Attachment · Desktop
Changed
Conversation Subagents · Desktop
Conversation Subagents · Desktop
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Conversation Thread Cards · Desktop
Conversation Thread Cards · Desktop
Changed
Push Notifications Tip · Desktop
Push Notifications Tip · Desktop
Changed
Push Notifications Tip On · Desktop
Push Notifications Tip On · Desktop
Changed
Space Threads · Desktop
Space Threads · Desktop
Changed
Space Threads · Mobile
Space Threads · Mobile
Changed
Space Threads Light · Desktop
Space Threads Light · Desktop
Changed

1 more changed screenshot in Frameshift.

@dcramer
dcramer merged commit 9196382 into main Nov 26, 2026
63 of 71 checks passed
@dcramer
dcramer deleted the ref/child-agent-statuses branch November 26, 2026 08:52

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 8f64437c Deployed Nov 26, 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