Skip to content

ref(agents): Rename Agent invocation leftovers to child agent terms - #4439

Merged
dcramer merged 1 commit into
mainfrom
ref/child-agent-names
Nov 26, 2026
Merged

dcramer merged 1 commit into
mainfrom
ref/child-agent-names

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Part of #3060. "Agent invocation" is a retired word, but code, tests, and fixtures still used it.

  • chat/agent-invocations/ moves to chat/child-agents/. Exported names, test files, and fixtures use child agent words, such as ChildAgentLimitError, MAX_ACTIVE_CHILD_AGENTS, CHILD_AGENT_STATUSES, and withSenderActors.
  • The dashboard API marks a parent agent's input with fromParentAgent: true. Before, it sent an agentInvocationId that the dashboard read only as a boolean.
  • Junior now tells a person's stop result by its stored stopped status, not by the stopped: prefix of its Turn id. Only a stop reports stopped, so the result is the same. Mailbox input from earlier releases has that status too.
  • The child agent lock is now junior:child_agents:<parent>. It is not stored.

Stored keys and id values from earlier releases stay as they are: the agent-invocation id prefix, result author ids, the subagentInvocationId history key, the agentInvocationId meta key, and agent_invocation.* Event types. Queued input, retried spawns, and stored history need them, and ids are opaque.

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 7:32am UTC

Request Review

@sentry-junior
sentry-junior Bot added this pull request to stack #4441 November 26, 2026 06:02
@dcramer
dcramer marked this pull request as ready for review November 26, 2026 06:06
@sentry-junior
sentry-junior Bot requested a review from dcramer November 26, 2026 06:06
Move chat/agent-invocations to chat/child-agents and rename the exported
names, test files, and fixtures that still used the retired word.

The dashboard API now marks a parent agent's input with fromParentAgent
instead of an id it only read as a boolean. A person's stop result is now
told by its stored status, not by its Turn id prefix.

Stored keys and id values from earlier releases stay, so queued input and
stored history still resolve.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior
sentry-junior Bot force-pushed the ref/child-agent-names branch from 477feb1 to 0956ed8 Compare November 26, 2026 07:32
@dcramer
dcramer merged commit 82a509c into main Nov 26, 2026
60 of 61 checks passed
@dcramer
dcramer deleted the ref/child-agent-names branch November 26, 2026 07:53

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0956ed8d 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