mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## 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
ThreadManager Sample
Small one-shot binary that starts a Codex thread with ThreadManager from
codex-core-api, submits a single user turn, and prints the final assistant
message.
Authentication uses the configured credential storage under CODEX_HOME, including
cli_auth_credentials_store, mcp_oauth_credentials_store, and
features.secret_auth_storage. Local managed authentication requirements and auth
routing settings are respected. This also applies to cargo run builds. Other
execution settings remain the sample's built-in configuration.
cargo run -p codex-thread-manager-sample -- "Say hello"
Use --model to override the configured default model:
cargo run -p codex-thread-manager-sample -- --model gpt-5.2 "Say hello"
The prompt can also be piped through stdin:
printf 'Say hello\n' | cargo run -p codex-thread-manager-sample