Repository navigation
docs(schema): define switch_mode as changing the mode config option in v2 - #2543
Merged
Merged
Conversation
…n v2 v2 removed the session modes API, but kept the switch_mode tool kind described as changing the session's operating mode. Modes now live in config options with the mode category, so the kind now means changing that option. The value stays, so it remains wire-compatible.
benbrandt
enabled auto-merge (squash)
October 27, 2026 17:32
Merged
benbrandt
added a commit
to agentclientprotocol/claude-agent-acp
that referenced
this pull request
Oct 28, 2026
Stacked on #1457 (SDK 2.1.0). EnterPlanMode tool calls now use `kind: "switch_mode"`, like ExitPlanMode (agentclientprotocol/agent-client-protocol#2543). The title is unchanged.
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.
v2 removed the session modes API, but the
switch_modetool kind was still described as "Changing the session's operating mode". In v2, mode-like state lives in session config options with themodecategory.Rather than remove the kind (Agents still have tools that switch modes, such as leaving plan mode, and v1 Agents migrating to v2 would suddenly send an unknown kind), this redefines it:
switch_modemeans changing the session's mode, a config option with themodecategory.ToolKind::SwitchModedoc comment (schema description), linking to session config options.tool-calls.mdx(main and draft) kind list.No wire change.