Skip to content

Commit 9f453c7

Browse files
authored
feat: Stabilize Session Config Options (#411)
* feat: Stabilize Session Config Options * Finialize docs * update
1 parent 158f01d commit 9f453c7

13 files changed

Lines changed: 645 additions & 251 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ include = ["/src/**/*.rs", "/README.md", "/LICENSE", "/Cargo.toml"]
1616
[features]
1717
unstable = [
1818
"unstable_cancel_request",
19-
"unstable_session_config_options",
2019
"unstable_session_fork",
2120
"unstable_session_info_update",
2221
"unstable_session_list",
@@ -25,7 +24,6 @@ unstable = [
2524
"unstable_session_usage",
2625
]
2726
unstable_cancel_request = []
28-
unstable_session_config_options = []
2927
unstable_session_fork = []
3028
unstable_session_info_update = []
3129
unstable_session_list = []

docs/docs.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"protocol/terminals",
7373
"protocol/agent-plan",
7474
"protocol/session-modes",
75+
"protocol/session-config-options",
7576
"protocol/slash-commands",
7677
"protocol/extensibility",
7778
"protocol/transports",
@@ -81,7 +82,6 @@
8182
"hidden": true,
8283
"pages": [
8384
"protocol/draft/cancellation",
84-
"protocol/draft/session-config-options",
8585
"protocol/draft/schema"
8686
]
8787
}
@@ -123,8 +123,14 @@
123123
"rfds/session-delete"
124124
]
125125
},
126-
{ "group": "Preview", "pages": ["rfds/session-config-options"] },
127-
{ "group": "Completed", "pages": ["rfds/introduce-rfd-process"] }
126+
{ "group": "Preview", "pages": [] },
127+
{
128+
"group": "Completed",
129+
"pages": [
130+
"rfds/introduce-rfd-process",
131+
"rfds/session-config-options"
132+
]
133+
}
128134
]
129135
},
130136
{

docs/protocol/draft/schema.mdx

Lines changed: 4 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
267267

268268
</ResponseField>
269269
<ResponseField name="configOptions" type={<><span><a href="#sessionconfigoption">SessionConfigOption[]</a></span><span> | null</span></>} >
270-
**UNSTABLE**
271-
272-
This capability is not part of the spec yet, and may be removed or changed at any point.
273-
274-
Initial session configuration options if supported by the Agent.
275-
270+
Initial session configuration options if supported by the Agent.
276271
</ResponseField>
277272
<ResponseField name="models" type={<><span><a href="#sessionmodelstate">SessionModelState</a></span><span> | null</span></>} >
278273
**UNSTABLE**
@@ -424,12 +419,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
424419

425420
</ResponseField>
426421
<ResponseField name="configOptions" type={<><span><a href="#sessionconfigoption">SessionConfigOption[]</a></span><span> | null</span></>} >
427-
**UNSTABLE**
428-
429-
This capability is not part of the spec yet, and may be removed or changed at any point.
430-
431-
Initial session configuration options if supported by the Agent.
432-
422+
Initial session configuration options if supported by the Agent.
433423
</ResponseField>
434424
<ResponseField name="models" type={<><span><a href="#sessionmodelstate">SessionModelState</a></span><span> | null</span></>} >
435425
**UNSTABLE**
@@ -507,12 +497,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
507497

508498
</ResponseField>
509499
<ResponseField name="configOptions" type={<><span><a href="#sessionconfigoption">SessionConfigOption[]</a></span><span> | null</span></>} >
510-
**UNSTABLE**
511-
512-
This capability is not part of the spec yet, and may be removed or changed at any point.
513-
514-
Initial session configuration options if supported by the Agent.
515-
500+
Initial session configuration options if supported by the Agent.
516501
</ResponseField>
517502
<ResponseField name="models" type={<><span><a href="#sessionmodelstate">SessionModelState</a></span><span> | null</span></>} >
518503
**UNSTABLE**
@@ -691,12 +676,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
691676

692677
</ResponseField>
693678
<ResponseField name="configOptions" type={<><span><a href="#sessionconfigoption">SessionConfigOption[]</a></span><span> | null</span></>} >
694-
**UNSTABLE**
695-
696-
This capability is not part of the spec yet, and may be removed or changed at any point.
697-
698-
Initial session configuration options if supported by the Agent.
699-
679+
Initial session configuration options if supported by the Agent.
700680
</ResponseField>
701681
<ResponseField name="models" type={<><span><a href="#sessionmodelstate">SessionModelState</a></span><span> | null</span></>} >
702682
**UNSTABLE**
@@ -716,18 +696,10 @@ See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/sess
716696
<a id="session-set_config_option"></a>
717697
### <span class="font-mono">session/set_config_option</span>
718698

719-
**UNSTABLE**
720-
721-
This capability is not part of the spec yet, and may be removed or changed at any point.
722-
723699
Sets the current value for a session configuration option.
724700

725701
#### <span class="font-mono">SetSessionConfigOptionRequest</span>
726702

727-
**UNSTABLE**
728-
729-
This capability is not part of the spec yet, and may be removed or changed at any point.
730-
731703
Request parameters for setting a session configuration option.
732704

733705
**Type:** Object
@@ -754,10 +726,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
754726

755727
#### <span class="font-mono">SetSessionConfigOptionResponse</span>
756728

757-
**UNSTABLE**
758-
759-
This capability is not part of the spec yet, and may be removed or changed at any point.
760-
761729
Response to `session/set_config_option` method.
762730

763731
**Type:** Object
@@ -1737,10 +1705,6 @@ Determines which file operations the agent can request.
17371705

17381706
## <span class="font-mono">ConfigOptionUpdate</span>
17391707

1740-
**UNSTABLE**
1741-
1742-
This capability is not part of the spec yet, and may be removed or changed at any point.
1743-
17441708
Session configuration options have been updated.
17451709

17461710
**Type:** Object
@@ -3007,30 +2971,18 @@ Whether the agent supports `session/resume`.
30072971

30082972
## <span class="font-mono">SessionConfigGroupId</span>
30092973

3010-
**UNSTABLE**
3011-
3012-
This capability is not part of the spec yet, and may be removed or changed at any point.
3013-
30142974
Unique identifier for a session configuration option value group.
30152975

30162976
**Type:** `string`
30172977

30182978
## <span class="font-mono">SessionConfigId</span>
30192979

3020-
**UNSTABLE**
3021-
3022-
This capability is not part of the spec yet, and may be removed or changed at any point.
3023-
30242980
Unique identifier for a session configuration option.
30252981

30262982
**Type:** `string`
30272983

30282984
## <span class="font-mono">SessionConfigOption</span>
30292985

3030-
**UNSTABLE**
3031-
3032-
This capability is not part of the spec yet, and may be removed or changed at any point.
3033-
30342986
A session configuration option selector and its current state.
30352987

30362988
**Type:** Union
@@ -3061,10 +3013,6 @@ Single-value selector (dropdown).
30613013

30623014
## <span class="font-mono">SessionConfigOptionCategory</span>
30633015

3064-
**UNSTABLE**
3065-
3066-
This capability is not part of the spec yet, and may be removed or changed at any point.
3067-
30683016
Semantic category for a session configuration option.
30693017

30703018
This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
@@ -3095,10 +3043,6 @@ Category names that do not begin with `_` are reserved for the ACP spec.
30953043

30963044
## <span class="font-mono">SessionConfigSelect</span>
30973045

3098-
**UNSTABLE**
3099-
3100-
This capability is not part of the spec yet, and may be removed or changed at any point.
3101-
31023046
A single-value selector (dropdown) session configuration option payload.
31033047

31043048
**Type:** Object
@@ -3122,10 +3066,6 @@ A single-value selector (dropdown) session configuration option payload.
31223066

31233067
## <span class="font-mono">SessionConfigSelectGroup</span>
31243068

3125-
**UNSTABLE**
3126-
3127-
This capability is not part of the spec yet, and may be removed or changed at any point.
3128-
31293069
A group of possible values for a session configuration option.
31303070

31313071
**Type:** Object
@@ -3152,10 +3092,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
31523092

31533093
## <span class="font-mono">SessionConfigSelectOption</span>
31543094

3155-
**UNSTABLE**
3156-
3157-
This capability is not part of the spec yet, and may be removed or changed at any point.
3158-
31593095
A possible value for a session configuration option.
31603096

31613097
**Type:** Object
@@ -3182,10 +3118,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
31823118

31833119
## <span class="font-mono">SessionConfigSelectOptions</span>
31843120

3185-
**UNSTABLE**
3186-
3187-
This capability is not part of the spec yet, and may be removed or changed at any point.
3188-
31893121
Possible values for a session configuration option.
31903122

31913123
**Type:** Union
@@ -3200,10 +3132,6 @@ Possible values for a session configuration option.
32003132

32013133
## <span class="font-mono">SessionConfigValueId</span>
32023134

3203-
**UNSTABLE**
3204-
3205-
This capability is not part of the spec yet, and may be removed or changed at any point.
3206-
32073135
Unique identifier for a session configuration option value.
32083136

32093137
**Type:** `string`
@@ -3664,10 +3592,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
36643592
</ResponseField>
36653593

36663594
<ResponseField name="config_option_update" type="object">
3667-
**UNSTABLE**
3668-
3669-
This capability is not part of the spec yet, and may be removed or changed at any point.
3670-
36713595
Session configuration options have been updated.
36723596

36733597
<Expandable title="Properties">

0 commit comments

Comments
 (0)