Lightweight coding agent that runs in your terminal
Rust
Add a feature flag for Code Mode tool description ordering (#51690)
swastik-oai95ec46861938
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.jsonindex 7e81582207..4133cc374e 100644--- a/codex-rs/core/config.schema.json+++ b/codex-rs/core/config.schema.json@@ -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"},diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rsindex 44d86eb43f..7cf5bef081 100644--- a/codex-rs/features/src/lib.rs+++ b/codex-rs/features/src/lib.rs@@ -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",