Track explicit web search modes and expose indexed in the SDK (#62884)

## What changed

Record whether an explicit `web_search` setting matches the effective
mode after applying configuration requirements. Mark the thread manager
sample's disabled mode as explicit.

Accept `indexed` in the TypeScript SDK's `WebSearchMode` type.

## Testing

Extend the SDK test to verify that both `cached` and `indexed` are passed
to `codex exec` as `web_search` config overrides.

GitOrigin-RevId: 0cf98c9a32f4da31fecc50da71acb601f6043b47
This commit is contained in:
Winston Howes
2026-11-21 01:40:15 +00:00
committed by copyberry
parent 619d36f810
commit 7edf91b13c
4 changed files with 13 additions and 5 deletions
@@ -393,6 +393,7 @@ async fn new_config(
forced_chatgpt_workspace_id: auth_config.forced_chatgpt_workspace_id.clone(),
forced_login_method: auth_config.forced_login_method,
web_search_mode: Constrained::allow_any(WebSearchMode::Disabled),
web_search_mode_was_explicit: true,
web_search_config: None,
experimental_request_user_input_enabled: true,
update_plan_enabled: true,