mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why Guardian inherits the actor's inference provider by default. Hosts that run actors on a different provider need to route Guardian reviews independently and resolve reviewer policy and model capabilities from the Guardian provider. ## What changed - Share the selected provider and its model catalog between asynchronous scoring and blocking approval reviews. Use the provider's preferred reviewer and resolve policy from managed requirements or reviewer model metadata. - Keep Guardian review history independent of actor compaction when the host selects a provider. Preserve inherited routing when no provider is selected. ## Testing Add integration coverage for separate actor and Guardian endpoints, catalog isolation when both share an endpoint, and routing after resuming a compacted thread. GitOrigin-RevId: 1eb15421f746a58eefe27257e86d948de31bcf86
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