mchen-oai
384a34ec6e
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-06 12:23:16 -07:00
..
2026-05-05 15:25:19 -07:00
2026-04-21 10:22:36 -07:00
2026-05-05 13:32:54 -07:00
2026-05-04 17:55:49 +00:00
2026-05-04 14:15:01 +02:00
2026-05-05 15:25:19 -07:00
2026-04-30 14:26:14 -07:00
2026-04-26 22:11:49 -07:00
2026-05-06 12:23:16 -07:00
2026-04-30 14:26:14 -07:00
2026-05-04 22:33:20 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 12:12:03 -07:00
2026-04-24 17:49:29 -07:00
2026-04-26 15:10:53 -07:00
2026-04-26 15:30:40 -07:00
2026-05-01 22:11:06 +00:00
2026-05-04 14:15:01 +02:00
2026-04-21 15:37:12 -07:00
2026-04-27 21:58:29 +00:00
2026-05-04 12:46:08 -07:00
2026-05-04 12:46:08 -07:00
2026-04-23 13:28:12 -07:00
2026-05-06 12:23:16 -07:00
2026-05-05 14:05:42 -07:00
2026-05-04 14:15:01 +02:00
2026-05-04 14:15:01 +02:00
2026-04-26 17:18:09 -07:00
2026-05-04 14:15:01 +02:00
2026-05-01 17:46:02 +02:00
2026-05-04 19:36:07 +00:00
2026-05-04 19:36:07 +00:00
2026-05-04 17:55:49 +00:00
2026-04-26 17:18:09 -07:00
2026-04-20 22:39:17 -07:00
2026-04-26 15:10:53 -07:00
2026-04-26 15:10:53 -07:00
2026-05-01 01:05:02 +00:00
2026-05-01 00:56:20 +00:00
2026-05-01 01:05:02 +00:00
2026-04-29 19:13:57 +00:00
2026-04-29 19:13:57 +00:00
2026-04-20 11:23:00 +01:00
2026-04-20 11:23:00 +01:00
2026-04-17 00:51:21 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 10:29:30 -07:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-05-05 21:45:29 +00:00
2026-04-23 17:14:02 -07:00
2026-04-30 20:03:26 -07:00
2026-05-06 12:23:16 -07:00
2026-05-06 12:23:16 -07:00
2026-05-04 19:36:07 +00:00
2026-04-17 18:34:06 +08:00
2026-04-30 14:26:14 -07:00
2026-04-27 16:01:05 +02:00
2026-04-14 14:26:10 -07:00
2026-04-27 03:18:57 +00:00
2026-04-24 17:49:29 -07:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-04-26 17:18:09 -07:00
2026-04-23 10:17:09 -07:00
2026-04-20 14:04:09 -07:00
2026-05-04 22:28:14 +00:00
2026-04-16 14:30:57 -07:00
2026-04-14 14:26:10 -07:00
2026-05-05 15:25:19 -07:00
2026-04-27 13:41:27 -07:00
2026-04-26 15:30:40 -07:00
2026-04-26 13:29:54 -07:00
2026-04-26 13:29:54 -07:00
2026-04-20 22:39:17 -07:00
2026-04-17 16:18:53 +00:00
2026-05-04 11:46:03 -07:00
2026-05-04 11:46:03 -07:00
2026-05-04 20:36:29 -07:00
2026-05-04 20:36:29 -07:00
2026-04-14 14:26:10 -07:00
2026-05-04 11:46:03 -07:00
2026-04-26 17:18:09 -07:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-04-26 17:18:09 -07:00
2026-05-06 12:23:16 -07:00
2026-05-06 12:23:16 -07:00
2026-04-28 16:36:59 +00:00
2026-05-04 22:33:20 +00:00
2026-04-15 21:48:05 +00:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-04-20 10:27:01 -07:00