mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Honor the user input setting for asynchronous questions (#51908)
## Why Disabling `experimental_request_user_input_enabled` previously left `request_user_input_async` available when the model advertised support for it. ## What changed Require the user input setting to be enabled before registering `request_user_input_async`, while preserving the root-agent restriction and support for both current and legacy model capability names. ## Testing Add parameterized tests covering enabled and disabled settings, current and legacy capability names, missing capabilities, and subagents. Also verify that `send_message_to_user_async` remains available to root agents independently of the user input setting. GitOrigin-RevId: 27156a3fe7da38d10fccb6384f28e755c39abc39
This commit is contained in:
@@ -1250,7 +1250,8 @@ fn add_core_utility_tools(context: &CoreToolPlanContext<'_>, registry: &mut Tool
|
||||
);
|
||||
}
|
||||
|
||||
if !turn_context.session_source.is_non_root_agent()
|
||||
if turn_context.config.experimental_request_user_input_enabled
|
||||
&& !turn_context.session_source.is_non_root_agent()
|
||||
&& context
|
||||
.model_info
|
||||
.experimental_supported_tools
|
||||
|
||||
Reference in New Issue
Block a user