mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
## What changed - Add `responses_api_metadata` for product-owned key/value metadata included in every Responses API turn metadata payload, including parent and subagent requests. - Limit the map to 16 entries, ASCII identifier keys of at most 64 bytes, and values of at most 128 bytes. Reject reserved Codex metadata keys and ignore this setting in project-local configuration. - Give configured product metadata precedence over app-server client metadata while keeping it out of metadata sent to external MCP servers. ## Testing - Cover reserved-key validation, metadata precedence, MCP isolation, and propagation to parent and subagent Responses API requests. GitOrigin-RevId: a7be798294fde25145ab375a468321bb4e4a49f1
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.
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