Rennie
3a9df58d06
Propagate thread id in MCP tool metadata ( #18093 )
...
## Summary
- attach the authoritative Codex thread id to MCP tool request
`_meta.threadId` for model-initiated tool calls
- attach the same thread id for manual `mcpServer/tool/call` requests
before invoking the MCP server
- cover both metadata helper behavior and the manual app-server MCP path
in tests
needed because the Rust app-server is the last place that still has
authoritative knowledge of “this model-generated MCP tool call belongs
to conversation/thread X” before the request leaves Codex and reaches
Hoopa. It adds threadId to MCP request metadata in the model-generated
tool-call path, using sess.conversation_id, and also does the same for
the manual mcpServer/tool/call path.
## Test plan
- `cargo test -p codex-core
mcp_tool_call_thread_id_meta_is_added_to_request_meta --lib`
- `cargo test -p codex-app-server
mcp_server_tool_call_returns_tool_result`
Paired Hoopa consumer PR: https://github.com/openai/openai/pull/833263
History
..
2026-04-20 22:39:17 -07:00
2026-04-19 23:16:43 -07:00
2026-04-07 08:03:35 -07:00
2026-04-07 00:32:41 +00:00
2026-04-21 05:05:02 +00:00
2026-04-21 05:05:02 +00:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:41:54 -07:00
2026-04-20 22:39:17 -07:00
2026-04-21 08:33:58 -07:00
2026-04-13 09:59:08 +01:00
2026-04-21 14:13:08 +08:00
2026-04-20 14:31:22 +01:00
2026-04-20 22:39:17 -07:00
2026-04-21 14:13:08 +08:00
2026-04-17 19:07:43 +00:00
2026-03-24 18:10:53 -07:00
2026-04-20 17:21:29 +00:00
2026-04-16 10:51:33 -07:00
2026-04-16 10:51:33 -07:00
2026-04-07 21:20:22 +00:00
2026-04-17 16:18:53 +00:00
2026-04-20 22:39:17 -07:00
2026-04-19 23:16:43 -07:00
2026-04-20 10:27:01 -07:00
2026-04-07 15:18:34 -07:00
2026-04-19 23:16:43 -07:00
2026-04-20 09:58:32 +01:00
2026-04-17 16:18:53 +00:00
2026-04-20 21:48:57 -07:00
2026-04-17 16:18:53 +00:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-03-27 19:00:44 -07:00
2026-03-12 08:16:36 -07:00
2026-04-17 16:18:53 +00:00
2026-04-21 00:54:05 +00:00
2026-04-17 16:18:53 +00:00
2026-04-17 13:27:49 -04:00
2026-04-20 06:50:28 -07:00
2026-03-12 00:35:21 -07:00
2026-04-18 11:01:12 -07:00
2026-04-20 22:39:17 -07:00
2026-04-03 12:07:07 -07:00
2026-04-13 09:59:08 +01:00
2026-04-20 11:51:58 +01:00
2026-04-20 17:21:29 +00:00
2026-04-16 10:31:51 -07:00
2026-04-16 10:31:51 -07:00
2026-04-20 11:23:00 +01:00
2026-04-20 11:23:00 +01:00
2025-09-24 14:29:51 -07:00
2026-01-08 15:07:30 +00:00
2026-04-17 00:51:21 +00:00
2026-04-17 16:18:53 +00:00
2026-04-14 14:26:10 -07:00
2026-04-14 14:26:10 -07:00
2026-04-21 08:33:58 -07:00
2026-04-19 23:16:43 -07:00
2026-04-17 16:18:53 +00:00
2026-03-27 19:00:44 -07:00
2026-04-21 10:09:46 -07:00
2026-04-21 10:09:46 -07:00
2026-04-20 10:27:01 -07:00
2026-04-17 18:34:06 +08:00
2026-04-20 06:50:28 -07:00
2026-03-12 08:16:36 -07:00
2026-04-03 00:33:34 -07: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-21 05:05:02 +00:00
2026-04-15 14:43:33 -07:00
2026-04-13 10:26:51 -07:00
2026-04-15 11:34:27 -07:00
2026-04-17 11:49:02 -07:00
2026-04-17 16:18:53 +00:00
2026-04-20 10:27:01 -07:00
2026-04-17 11:49:02 -07:00
2026-04-20 14:04:09 -07:00
2026-04-20 15:43:20 -07: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-04-17 11:49:02 -07:00
2026-04-14 14:26:10 -07:00
2026-04-14 14:26:10 -07:00
2026-04-01 23:06:24 -07:00
2026-04-01 23:06:24 -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-02-10 17:03:46 -08:00
2026-04-14 14:26:10 -07:00
2026-04-20 15:15:05 +01:00
2026-03-27 19:00:44 -07:00
2026-04-02 13:47:10 -07:00
2026-04-14 15:40:40 -07:00
2026-04-17 18:11:47 -07:00
2026-04-14 14:26:10 -07:00
2026-04-07 08:03:35 -07:00
2026-04-17 16:18:53 +00:00
2026-04-20 14:31:22 +01:00
2026-04-03 00:33:34 -07:00
2026-04-17 16:18:53 +00:00
2026-04-20 05:42:22 +00:00
2026-04-17 16:18:53 +00:00
2026-04-13 23:11:49 -07:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-04-14 14:26:10 -07:00
2026-04-14 14:26:10 -07:00
2026-03-18 10:03:38 +00:00
2026-04-17 16:18:53 +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-01-30 16:37:56 -08: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