Lightweight coding agent that runs in your terminal
Rust
Remove the feature gate for async user messages (#39452)
rka-oaif5a3dc55404d
diff --git a/codex-rs/core/src/tools/spec_plan.rs b/codex-rs/core/src/tools/spec_plan.rsindex 3de1dfd0ca..211408b9d2 100644--- a/codex-rs/core/src/tools/spec_plan.rs+++ b/codex-rs/core/src/tools/spec_plan.rs@@ -1063,7 +1063,6 @@ fn add_core_utility_tools(context: &CoreToolPlanContext<'_>, registry: &mut Tool}if !turn_context.session_source.is_non_root_agent()- && features.enabled(Feature::SendAsyncMessage)&& turn_context.model_info.experimental_supported_toolsdiff --git a/codex-rs/core/tests/suite/send_user_message_async.rs b/codex-rs/core/tests/suite/send_user_message_async.rsindex 530e067c08..d017a4e99e 100644--- a/codex-rs/core/tests/suite/send_user_message_async.rs+++ b/codex-rs/core/tests/suite/send_user_message_async.rs@@ -1,6 +1,5 @@use anyhow::Result;use codex_core::TurnInputRequest;-use codex_features::Feature;use codex_protocol::items::AgentMessageContent;use codex_protocol::items::AgentMessageDelivery;use codex_protocol::items::AgentMessageItem;@@ -57,12 +56,6 @@ async fn send_user_message_async_emits_item_and_does_not_end_the_turn() -> Resul.experimental_supported_tools.push("send_user_message_async".to_string());})- .with_config(|config| {- config- .features- .enable(Feature::SendAsyncMessage)- .expect("test config should allow enabling async messages");- }).build_with_auto_env(&server).await?;diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rsindex 61bbc3dd3e..24d2a852a4 100644--- a/codex-rs/features/src/lib.rs+++ b/codex-rs/features/src/lib.rs@@ -262,7 +262,7 @@ pub enum Feature {MentionsV2,/// Allow request_user_input in Default collaboration mode.DefaultModeRequestUserInput,- /// Allow sending a user-visible message without ending the current turn.+ /// Removed compatibility flag for model-enabled async user messaging.SendAsyncMessage,/// Enable automatic review for approval prompts.GuardianApproval,@@ -1355,7 +1355,7 @@ pub const FEATURES: &[FeatureSpec] = &[FeatureSpec {id: Feature::SendAsyncMessage,key: "send_async_message",- stage: Stage::UnderDevelopment,+ stage: Stage::Removed,default_enabled: false,},FeatureSpec {