You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/protocol/v2/draft/session-config-options.mdx
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,7 @@ title: "Session Config Options"
3
3
description: "Flexible configuration selectors for agent sessions"
4
4
---
5
5
6
-
Agents can provide an arbitrary list of configuration options for a session, allowing Clients to offer users customizable selectors for things like models, modes, reasoning levels, and more.
7
-
8
-
<Info>
9
-
Session Config Options are the preferred way to expose session-level
10
-
configuration. If an Agent provides `configOptions`, Clients **SHOULD** use
11
-
them instead of the [`modes`](./session-modes) field. Modes will be removed in
12
-
a future version of the protocol.
13
-
</Info>
6
+
Agents can provide an arbitrary list of configuration options for a session, allowing Clients to offer users customizable selectors for things like modes, models, reasoning levels, and more.
14
7
15
8
## Initial State
16
9
@@ -263,20 +256,3 @@ This notification also contains the complete configuration state. Common reasons
263
256
- Switching modes after completing a planning phase
264
257
- Falling back to a different model due to rate limits or errors
265
258
- Adjusting available options based on context discovered during execution
266
-
267
-
## Relationship to Session Modes
268
-
269
-
Session Config Options supersede the older [Session Modes](./session-modes) API. However, during the transition period, Agents that provide mode-like configuration **SHOULD** send both:
270
-
271
-
-`configOptions` with a `category: "mode"` option for Clients that support config options
272
-
-`modes` for Clients that only support the older API
273
-
274
-
If an Agent provides both `configOptions` and `modes` in the session response:
275
-
276
-
- Clients that support config options **SHOULD** use `configOptions` exclusively and ignore `modes`
277
-
- Clients that don't support config options **SHOULD** fall back to `modes`
278
-
- Agents **SHOULD** keep both in sync to ensure consistent behavior regardless of which field the Client uses
Copy file name to clipboardExpand all lines: docs/protocol/v2/draft/session-list.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ When no sessions match the criteria, the Agent **MUST** return an empty `session
179
179
180
180
## Updating Session Metadata
181
181
182
-
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](/protocol/v2/draft/slash-commands) and [`current_mode_update`](/protocol/v2/draft/session-modes).
182
+
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](/protocol/v2/draft/slash-commands) and [`config_option_update`](/protocol/v2/draft/session-config-options#from-the-agent).
Copy file name to clipboardExpand all lines: docs/protocol/v2/session-config-options.mdx
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,7 @@ title: "Session Config Options"
3
3
description: "Flexible configuration selectors for agent sessions"
4
4
---
5
5
6
-
Agents can provide an arbitrary list of configuration options for a session, allowing Clients to offer users customizable selectors for things like models, modes, reasoning levels, and more.
7
-
8
-
<Info>
9
-
Session Config Options are the preferred way to expose session-level
10
-
configuration. If an Agent provides `configOptions`, Clients **SHOULD** use
11
-
them instead of the [`modes`](./session-modes) field. Modes will be removed in
12
-
a future version of the protocol.
13
-
</Info>
6
+
Agents can provide an arbitrary list of configuration options for a session, allowing Clients to offer users customizable selectors for things like modes, models, reasoning levels, and more.
14
7
15
8
## Initial State
16
9
@@ -263,20 +256,3 @@ This notification also contains the complete configuration state. Common reasons
263
256
- Switching modes after completing a planning phase
264
257
- Falling back to a different model due to rate limits or errors
265
258
- Adjusting available options based on context discovered during execution
266
-
267
-
## Relationship to Session Modes
268
-
269
-
Session Config Options supersede the older [Session Modes](./session-modes) API. However, during the transition period, Agents that provide mode-like configuration **SHOULD** send both:
270
-
271
-
-`configOptions` with a `category: "mode"` option for Clients that support config options
272
-
-`modes` for Clients that only support the older API
273
-
274
-
If an Agent provides both `configOptions` and `modes` in the session response:
275
-
276
-
- Clients that support config options **SHOULD** use `configOptions` exclusively and ignore `modes`
277
-
- Clients that don't support config options **SHOULD** fall back to `modes`
278
-
- Agents **SHOULD** keep both in sync to ensure consistent behavior regardless of which field the Client uses
Copy file name to clipboardExpand all lines: docs/protocol/v2/session-list.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ When no sessions match the criteria, the Agent **MUST** return an empty `session
156
156
157
157
## Updating Session Metadata
158
158
159
-
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](./slash-commands) and [`current_mode_update`](./session-modes).
159
+
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](./slash-commands) and [`config_option_update`](./session-config-options#from-the-agent).
0 commit comments