Add a feature flag for Code Mode tool description ordering (#51690)

## What changed

Register `code_mode_tool_description_first` as an under-development feature, disabled by default, for placing tool descriptions before namespace descriptions in Code Mode. Add the boolean option to the configuration schema.

GitOrigin-RevId: 5d7e2f7cef87a040f9d96b0d97c2697880c12c17
This commit is contained in:
swastik-oai
2026-10-07 13:25:24 +00:00
committed by copyberry
parent 1199b39762
commit 95ec468619
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -815,6 +815,9 @@
"code_mode_prewarm": {
"type": "boolean"
},
"code_mode_tool_description_first": {
"type": "boolean"
},
"code_mode_tool_search": {
"type": "boolean"
},
@@ -7035,6 +7038,9 @@
"code_mode_prewarm": {
"type": "boolean"
},
"code_mode_tool_description_first": {
"type": "boolean"
},
"code_mode_tool_search": {
"type": "boolean"
},
+8
View File
@@ -137,6 +137,8 @@ pub enum Feature {
CodeModePrewarm,
/// Terminate active code mode cells when their turn is interrupted.
CodeModeInterrupt,
/// Put each tool's description before its namespace description in Code Mode.
CodeModeToolDescriptionFirst,
/// Restrict model-visible tools to code mode entrypoints (`exec`, `wait`).
CodeModeOnly,
/// Keep eligible MCP/app and dynamic tools deferred in exec, only in Code Mode Only.
@@ -1155,6 +1157,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::CodeModeToolDescriptionFirst,
key: "code_mode_tool_description_first",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::InstantInterrupt,
key: "instant_interrupt",