jif-oai
70335e73ba
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 12:23:18 -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-06 12:23:18 -07:00
2026-04-03 15:03:21 -07:00
2026-05-06 12:23:18 -07:00
2026-05-06 12:23:18 -07: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-06 12:23:18 -07:00
2026-05-06 12:23:17 -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-05-06 12:23:18 -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-06 12:23:18 -07: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-06 12:23:18 -07: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-05-06 12:23:17 -07:00
2026-05-06 12:23:17 -07:00
2026-05-05 09:51:18 +03:00
2026-05-06 12:23:17 -07: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-06 12:23:17 -07:00
2026-04-28 17:10:42 -07:00
2026-05-06 12:23:18 -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-06 12:23:17 -07:00
2026-05-05 09:51:18 +03:00
2026-05-06 12:23:18 -07:00
2026-04-21 17:48:33 -07:00
2026-04-21 17:48:33 -07:00
2026-05-06 12:23:18 -07: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-05-06 12:23:17 -07:00