Skip to content

docs(unstable-v2): scope the config option rules for child sessions and setup responses - #2951

Merged
benbrandt merged 2 commits into
mainfrom
docs/v2-config-options-child-sessions
Nov 20, 2026
Merged

benbrandt merged 2 commits into
mainfrom
docs/v2-config-options-child-sessions

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

Two rules on the config options page disagreed with other pages.

session/set_config_option and child sessions

Three places said an Agent that advertises config options for a session MUST support session/set_config_option for it. The Subagents page has Agents report a child's options with config_option_update, and forbids the request for a child: a child's capabilities are an allowlist of what the Client can send, and none permits session/set_config_option. So the three statements were false for child sessions as written.

  • Config options page, stable and draft: the rule is scoped to "a session the Client created or resumed". A new paragraph says a child's capabilities decide which requests the Client can send, that none defined today permits session/set_config_option, and that a child's options are therefore read-only.
  • Initialization page, stable and draft: the same scope.
  • SetSessionConfigOptionRequest description in the v2 schema: the same scope and the child rule, with the schema and schema reference pages regenerated.

The wording follows the capability allowlist on the Subagents page, so it stays right if a later capability permits the request for a child.

Options in setup responses

The config options page said that during session setup "the Agent MAY return a list of configuration options". The session setup page says an Agent whose session has options MUST include them in the setup response, because that response replaces the list the Client holds. The config options page now says the same, in the form the slash commands page already uses for availableCommands.

For implementers

No change for an implementation that follows the Subagents and session setup pages.

Checks

  • The tests, cargo fmt, Prettier and the spell check pass.
  • Regenerating the schema a second time gives no diff.

…nd setup responses

Three statements said an Agent that advertises config options for a
session MUST support `session/set_config_option` for it. The Subagents
page has Agents report a child's options and forbids the request for a
child, because a child's capabilities decide which requests a Client can
send and none permits this one. Scope the three statements to sessions
the Client created or resumed, and say on the config options page that
a child's options are read-only.

The config options page also said the Agent MAY return its options
during session setup. The session setup page requires it, because a
setup response replaces the Client's list. Use MUST there too.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 20:13
The draft slash commands page names the unstable `session/fork` response
next to `session/new` and `session/resume`. The draft config options
page now does the same.
@benbrandt
benbrandt merged commit cc14206 into main Nov 20, 2026
16 checks passed
@benbrandt
benbrandt deleted the docs/v2-config-options-child-sessions branch November 20, 2026 20:57
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant