mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
Resolve or inject installation IDs at the host boundary and pass them into ThreadManager and Session as plain Strings. This removes filesystem access from the core session startup path, keeps spawned children on the same installation ID, and propagates startup failures without panicking in mcp-server. Validation: - just fix -p codex-core -p codex-core-api -p codex-app-server -p codex-mcp-server -p codex-thread-manager-sample - just fmt - cargo test -p codex-mcp-server - cargo test -p codex-core --test all includes_conversation_id_and_model_headers_in_request - cargo test -p codex-core --test all chatgpt_auth_sends_correct_request - cargo test -p codex-core --test all prefers_apikey_when_config_prefers_apikey_even_with_chatgpt_tokens - cargo test -p codex-core --test all list_skills_skips_cwd_roots_when_environment_disabled - cargo test -p codex-core --test all with_additional_permissions_requires_approval_under_on_request - cargo test -p codex-core thread_manager::tests::explicit_installation_id_skips_codex_home_file Co-authored-by: Codex <noreply@openai.com>