Repository navigation
feat(schema): stabilize subagent sessions - #2939
Merged
Merged
Conversation
Move Subagent Sessions to Completed. Publish `subagent_update`, `session_message`, `session_message_chunk`, and `session` tool call content in the default v1 schema. v1 keeps the Client's `subagents` capability. v2 already includes subagents and needs no capability. - Remove the `unstable_subagents` Cargo feature and its gates from the v1 types. - Add the stable v1 Subagents page, and the subagent sections of the stable prompt turn, tool calls, initialization, overview, and error pages. - Drop the "Draft only" and "(unstable)" labels from the draft copies. - Record the Zed, Claude Agent adapter, and Codex adapter implementations in the RFD. The `session/fork` rules for child sessions and the `usage` field on the idle state stay unstable with their own RFDs.
benbrandt
enabled auto-merge (squash)
November 20, 2026 15:48
Merged
benbrandt
added a commit
that referenced
this pull request
Nov 20, 2026
…2944) The rule that an answer arriving after cancellation does not restart the cancelled work was a SHOULD or SHOULD NOT on the prompt lifecycle, cancellation and elicitation pages, a MUST NOT on the Subagents pages and in the Subagent Sessions RFD, and a lowercase "should" in the state transition examples. Use SHOULD NOT for restarting work everywhere. The Subagents pages and the RFD keep MUST NOT for the authorization half: a late answer does not permit a new task for the same child. The examples table gets the capitalized keyword. The v1 Subagents page changes too. It became stable in #2939, which has not been released.
benbrandt
added a commit
that referenced
this pull request
Nov 20, 2026
… list (#2947) Migration guide: - Subagents are stable in v1 since #2939. The guide no longer calls them a draft feature or new in v2, and the update table lists `subagent_update`, `session_message` and `session_message_chunk` as kept. - The Subagents section said to send no request for a child. It now allows `tool_call/cancel` and `terminal/cancel`, as the Subagents page and the Clients checklist do. - The checklists gain steps that the guide body already requires: version selection with `-32022`, `$/cancel_request` for pending requests, the `state_update` before every resume response, `type` on MCP server configs sent by Clients, authentication for Clients, and request IDs and arrays for SDKs. - The guide gains rules that are new or stricter than v1: rejecting a prompt with an unadvertised content type, `-32602` for an invalid `session/list` cursor, the `state_update` after a new session that is not idle, the `-32601` answer for a Client with no `elicitation` capability, and a short list of smaller rule changes. - Three sentences that disagreed with another part of the guide are corrected, and the schema-detail paragraph names two more differences. RFDs: - The v2 change list gains the breaking changes it missed, counts five error rules, and no longer says terminals have no control method. - The Elicitation RFD notes the `-32601` answer in v2.
RossRKK
pushed a commit
to RossRKK/agentic.nvim
that referenced
this pull request
Nov 20, 2026
`clientCapabilities.subagents = {}` asks the agent to expose the
sub-agents it creates as child sessions. claude-agent-acp then reports
each child's work state on the parent, including a background sub-agent
that keeps working after the parent's turn ends, which the client had no
way to see before.
The integration test replays the session/update frames claude-agent-acp
0.109.0 sent for one background sub-agent: running, idle while its own
background command ran, running again, then idle after its report.
RFD: https://agentclientprotocol.com/rfds/subagents ("Capability
negotiation"), stabilised in the ACP schema by
agentclientprotocol/agent-client-protocol#2939
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the Subagent Sessions RFD to Completed and stabilizes the feature in ACP v1. v2 already includes subagents without a feature flag, so the v2 schemas and pages do not change.
In v1, Clients still opt in with
clientCapabilities.subagents: {}. The wire shapes are the ones the unstable schema already had.Changes
Schema
unstable_subagentsCargo feature and its gates from the v1 types.schema/v1/schema.jsongainsSubagentUpdate,SubagentCapabilities,SubagentSessionCapabilities,SessionCancelCapabilities,SessionMessage,SessionMessageChunk,SessionReference, and the state snapshot types (StateUpdateand its variants,ErrorStopReason).SessionUpdategainssubagent_update,session_message, andsession_message_chunk.ToolCallContentgainssession.ClientCapabilitiesgainssubagents.session_messagecursor anchor needs onlyunstable_session_cursors.Stable v1 pages
session/forksection.subagentsClient capability.Draft v1 pages
#session-directed-messages-unstableand#sessions-unstablebecome#session-directed-messagesand#sessions.RFDs and announcements
07278eddc4a, Claude Agent adapter v0.109.0, and Codex adapter v2.8.0.session_messageanchor is behindunstable_subagents.Tests and CI
subagentscapability.session_messagefails to parse without the feature.--features unstable_subagents. Theunstable_protocol_v2run already covers the subagent tests that needunstable_end_turn_token_usageoff.Not changed
schema/v1/schema.unstable.jsonchanges in descriptions only.session/forkrules for child sessions and theusagefield on the idle state. Both stay unstable with their own RFDs.Note for SDKs
Removing
unstable_subagentsbreaks a crate that names the feature, such as the Rust SDK's forwarding feature. Theunstableumbrella feature is unaffected.Checks
npm run checkpasses: Clippy, Prettier, the spell check, the Rust tests, and the JSON schema tests, which validate the JSON-RPC examples on the stable pages againstschema/v1/schema.json.unstable,unstable_protocol_v2, and each ofunstable_session_cursorsandunstable_end_turn_token_usagealone.initialization#filesystemin an existing schema description, which is unrelated to this change.