mchen-oai
794c240f25
Add model and reasoning effort to MCP turn metadata ( #21219 )
...
## Why
- Similar change as https://github.com/openai/codex/pull/19473 .
- Without change: MCP tool calls receive
`_meta["x-codex-turn-metadata"]` with `session_id`, `turn_id`, and
`turn_started_at_unix_ms`.
- Issue: MCP servers may want the model and reasoning effort to better
understand tool-call behavior and latency relative to turn start.
## What Changed
- With change: MCP turn metadata now includes `model` and
`reasoning_effort`, propagated in `_meta["x-codex-turn-metadata"]`.
- Normal `/responses` turn metadata headers are unchanged.
## Verification
- `codex-rs/core/src/mcp_tool_call_tests.rs`
- `codex-rs/core/src/turn_metadata_tests.rs`
- `codex-rs/core/tests/suite/search_tool.rs`
2026-05-05 17:37:48 -07:00
..
2026-04-18 11:01:12 -07:00
2026-04-21 17:48:33 -07:00
2026-03-27 19:00:44 -07:00
2026-04-26 20:59:58 -07:00
2026-04-12 18:36:03 -07:00
2026-04-30 21:41:15 +00:00
2026-05-01 01:05:02 +00:00
2026-04-03 15:03:21 -07:00
2026-04-27 21:32:10 -07:00
2026-05-05 21:45:29 +00:00
2026-05-01 15:11:22 -07:00
2026-04-30 20:03:26 -07:00
2026-04-26 20:59:58 -07:00
2026-05-04 14:15:01 +02:00
2026-04-30 21:24:59 -07:00
2026-04-30 20:03:26 -07:00
2026-05-05 10:34:44 -07:00
2026-05-01 00:56:20 +00:00
2026-04-28 17:05:53 -07:00
2026-04-30 21:24:59 -07:00
2026-04-12 18:36:03 -07:00
2026-05-05 19:13:55 +00:00
2026-05-05 19:13:55 +00:00
2026-04-28 17:03:20 -07:00
2026-05-04 22:33:20 +00:00
2026-04-28 17:03:20 -07:00
2026-04-28 17:03:20 -07:00
2026-05-04 12:48:59 -07:00
2026-04-22 13:34:33 -07:00
2026-05-05 09:51:18 +03:00
2026-04-28 17:06:59 -07:00
2026-05-05 09:51:18 +03:00
2026-04-28 17:05:53 -07:00
2026-05-05 19:13:55 +00:00
2026-05-04 12:57:05 -07:00
2026-04-22 13:34:33 -07:00
2026-04-28 17:03:20 -07:00
2026-04-30 21:24:59 -07:00
2026-05-05 21:45:29 +00:00
2026-05-05 09:51:18 +03:00
2026-04-28 01:14:44 +00:00
2026-05-01 22:11:06 +00:00
2026-05-05 21:45:29 +00:00
2026-04-21 17:48:33 -07:00
2026-05-04 22:28:14 +00:00
2026-05-05 12:12:03 -07:00
2026-05-05 09:51:18 +03:00
2026-04-21 17:48:33 -07:00
2026-05-04 12:48:59 -07:00
2026-04-26 20:59:58 -07:00
2026-05-02 04:22:12 +00:00
2026-04-28 17:03:20 -07:00
2026-04-28 17:08:04 -07:00
2026-05-05 21:45:29 +00:00
2026-04-22 13:34:33 -07:00
2026-04-30 20:03:26 -07:00
2026-05-05 09:51:18 +03:00
2026-05-04 11:46:03 -07:00
2026-04-28 17:10:42 -07:00
2026-05-05 17:37:48 -07:00
2026-04-20 10:27:01 -07:00
2026-04-28 23:01:40 +00:00
2026-04-28 17:05:53 -07:00
2026-04-28 17:15:58 -07:00
2026-05-05 21:45:29 +00:00
2026-05-05 09:51:18 +03:00
2026-04-28 17:05:53 -07:00
2026-04-21 17:48:33 -07:00
2026-04-21 17:48:33 -07:00
2026-04-23 18:54:45 +02:00
2026-05-01 08:47:18 -07:00
2026-04-28 17:03:20 -07:00
2026-04-28 17:11:43 -07:00
2026-04-28 23:01:40 +00:00
2026-03-11 12:33:09 -07:00
2026-04-29 19:13:57 +00:00
2026-05-05 21:45:29 +00:00
2026-04-21 17:48:33 -07:00
2026-04-28 17:06:59 -07:00
2026-05-05 09:51:18 +03:00
2026-04-28 23:01:40 +00:00
2026-04-28 17:03:20 -07:00
2026-04-30 21:24:59 -07:00