Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Add the `incremental_tools` feature flag (#50464)

pakrym-oaia0bfaac70ccd
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json
index ce99d95f99..62edaa6824 100644
--- a/codex-rs/core/config.schema.json
+++ b/codex-rs/core/config.schema.json
@@ -956,6 +956,9 @@
"in_app_voice": {
"type": "boolean"
},
+ "incremental_tools": {
+ "type": "boolean"
+ },
"instant_interrupt": {
"type": "boolean"
},
@@ -7108,6 +7111,9 @@
"in_app_voice": {
"type": "boolean"
},
+ "incremental_tools": {
+ "type": "boolean"
+ },
"instant_interrupt": {
"type": "boolean"
},
diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs
index 8213bbfe79..56bae8c8c1 100644
--- a/codex-rs/features/src/lib.rs
+++ b/codex-rs/features/src/lib.rs
@@ -248,6 +248,8 @@ pub enum Feature {
ToolSearchAlwaysDeferMcpTools,
/// Describe deferred tool namespaces in the model-visible world state.
DeferredToolWorldState,
+ /// Track top-level tool definitions in world state and emit incremental context updates.
+ IncrementalTools,
/// Expose MCP model-visible namespaces without the legacy `mcp__` prefix.
NonPrefixedMcpToolNames,
/// Enable discoverable tool suggestions for apps.
@@ -1478,6 +1480,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
+ FeatureSpec {
+ id: Feature::IncrementalTools,
+ key: "incremental_tools",
+ stage: Stage::UnderDevelopment,
+ default_enabled: false,
+ },
FeatureSpec {
id: Feature::NonPrefixedMcpToolNames,
key: "non_prefixed_mcp_tool_names",