jif-oai
fe24a180ab
feat: include thread ID in MCP turn metadata ( #21329 )
...
## Why
MCP tool calls already include `session_id` in `x-codex-turn-metadata`,
but descendant threads intentionally share that value with the root
thread. Consumers that need to correlate work at the concrete thread
level also need the current `thread_id`.
## What changed
- add `thread_id` to `x-codex-turn-metadata` while preserving
`session_id` as the shared session identity
- thread the two identities separately through normal turns and spawned
review threads
- add regression coverage for resumed sessions, reserved metadata
fields, and deferred MCP tool calls
## Verification
- added focused coverage in `core/src/session/tests.rs`,
`core/src/turn_metadata_tests.rs`, and `core/tests/suite/search_tool.rs`
2026-05-06 11:36:15 +02:00
..
2026-05-06 10:48:37 +02:00
2026-04-21 10:22:36 -07:00
2026-04-07 00:32:41 +00:00
2026-05-05 21:09:28 -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 11:36:15 +02: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-03-24 18:10:53 -07:00
2026-04-24 17:49:29 -07:00
2026-04-26 15:10:53 -07:00
2026-04-07 21:20:22 +00: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-06 10:48:37 +02:00
2026-05-06 10:48:37 +02:00
2026-04-23 13:28:12 -07:00
2026-05-06 02:12:31 +00:00
2026-05-06 10:48:37 +02:00
2026-04-01 23:06:24 -07:00
2026-03-27 19:00:44 -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-06 07:18:00 +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 18:58:18 -07:00
2026-04-23 17:14:02 -07:00
2026-04-30 20:03:26 -07:00
2026-03-27 19:00:44 -07:00
2026-05-06 07:18:00 +00:00
2026-05-06 07:18:00 +00: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-03-25 11:05:35 -07:00
2026-03-27 19:00:44 -07:00
2026-04-14 14:26:10 -07:00
2026-04-02 23:00:02 -07:00
2026-04-09 10:53:06 -07:00
2026-03-27 19:00:44 -07:00
2026-04-27 03:18:57 +00:00
2026-04-24 17:49:29 -07:00
2026-04-13 10:26:51 -07:00
2026-05-06 02:12:31 +00:00
2026-05-05 21:45:29 +00:00
2026-05-05 21:45:29 +00:00
2026-05-06 02:12:31 +00: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-01 23:06:24 -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-03 00:33:34 -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-03-27 19:00:44 -07:00
2026-04-02 13:47:10 -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-06 02:12:31 +00:00
2026-05-05 21:09:28 -07:00
2026-04-26 17:18:09 -07:00
2026-04-13 23:11:49 -07:00
2026-04-01 23:06:24 -07:00
2026-05-06 11:36:15 +02:00
2026-05-06 11:36:15 +02: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
2026-04-03 00:33:34 -07:00
2026-04-01 23:06:24 -07:00
2026-04-01 23:06:24 -07:00
2026-04-08 08:42:18 -07:00
2026-04-08 08:42:18 -07:00