Repository navigation
docs(unstable-v2): fill gaps in the migration guide and the v2 change list - #2947
Merged
Merged
Conversation
… list 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.
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
The migration guide and the v2 change list in the tracking RFD had fallen behind the spec pages. This brings both up to date. No spec page or schema changes.
Migration guide
Subagents are stable in v1 since #2939
subagent_update,session_messageandsession_message_chunkas kept, with no Client capability in v2. They were listed as new.sessiontool call content item is described as kept, not added.A rule that was too strict
tool_call/cancelandterminal/cancelfor an item that advertises its owncapabilities.cancel, as the Subagents page and the Clients checklist already do.Steps missing from the checklists
-32022, rejecting a prompt with an unadvertised content type,$/cancel_requestfor pending requests onsession/cancelandsession/close, and thestate_updatebefore every resume response.typediscriminators". Clients send these configs, so it now says "Require".typeon every MCP server config, and a new authentication item.id: nulland JSON arrays.Rules that are new or stricter than v1 and were not in the guide
-32602for an invalidsession/listcursor is a MUST.idleMUST send itsstate_updateafter the response.elicitationcapability answerselicitation/createwith-32601.$/cancel_request, and joining adjacent text blocks.Sentences that disagreed with another part of the guide
session/prompt, which gainsidempotencyKey.tool_call_update"gains thepausedstatus", wherecancelledis new too.Schema-detail paragraph
SessionInfoUpdate.updatedAtnext toSessionInfo.updatedAt, and saysTerminalExitStatus.exitCodeis signed.RFDs
docs/rfds/v2/overview.mdx): adds the breaking changes it missed, with a revision entry. It now counts five error rules that became requirements. The terminal output entry no longer says there are no control methods.-32601answer in v2, with a revision entry.Checks