sayan-oai
2066874415
extension-api: add TurnItemEmitter to tool calls ( #24813 )
...
## Why
Extension-contributed tools need to emit visible turn items through
Codex's normal event and persistence pipeline.
## What
- Add `TurnItemEmitter` to extension `ToolCall`s and route the core
implementation through `Session::emit_turn_item_*`.
- Hold weak session and turn references so retained tool calls cannot
keep host state alive.
- Provide a no-op emitter for extension test callers.
## Test Plan
- `just test -p codex-core -E
'test(passes_turn_fields_and_scoped_turn_item_emitter_to_extension_call)'`
---------
Co-authored-by: jif-oai <jif@openai.com >
2026-05-28 09:13:43 -07:00
..
2026-05-28 07:23:08 -07:00
2026-05-28 11:51:24 +02:00
2026-05-26 13:02:34 -07:00
2026-05-22 01:11:47 +00:00
2026-05-28 07:23:08 -07:00
2026-05-07 10:16:10 -07:00
2026-05-28 07:23:08 -07:00
2026-05-26 13:02:34 -07:00
2026-05-28 07:23:08 -07:00
2026-05-28 09:13:43 -07:00
2026-05-26 14:56:27 -07:00
2026-05-19 21:56:46 -07:00
2026-05-19 21:56:46 -07:00
2026-05-11 16:33:44 -07:00
2026-05-08 12:36:02 -07:00
2026-05-18 09:57:54 -07:00
2026-05-18 09:57:54 -07:00
2026-05-08 12:36:02 -07:00
2026-05-28 12:36:01 +02:00
2026-05-13 11:15:25 -07:00
2026-05-26 16:38:46 -07:00
2026-05-28 07:23:08 -07:00
2026-05-27 11:09:33 -07:00
2026-05-27 11:09:33 -07:00
2026-05-11 19:51:51 -07:00
2026-05-28 07:23:08 -07:00
2026-05-14 15:16:15 +02:00
2026-05-27 14:52:06 -07:00
2026-05-26 08:21:15 -07:00
2026-05-19 12:55:34 -07:00
2026-05-21 12:54:00 +02:00
2026-05-15 15:04:04 -07:00
2026-05-16 12:12:37 -07:00
2026-05-16 12:12:37 -07:00
2026-05-11 11:37:53 -07:00
2026-05-27 12:59:11 -07:00
2026-05-27 12:59:11 -07:00
2026-05-13 11:31:27 +02:00
2026-05-18 10:53:49 -07:00
2026-05-28 07:23:08 -07:00
2026-05-28 07:23:08 -07:00
2026-04-28 19:43:44 -07:00
2026-05-26 11:01:18 +02:00
2026-05-13 11:15:25 -07:00
2026-05-21 17:19:54 +02:00
2026-05-26 20:59:47 -07:00
2026-05-27 14:52:06 -07:00
2026-05-26 08:21:15 -07:00
2026-05-27 14:52:06 -07:00
2026-05-19 11:24:09 +02:00
2026-05-07 10:36:32 +02:00
2026-05-19 11:24:09 +02:00
2026-05-20 17:10:37 -07:00
2026-05-20 17:10:37 -07:00
2026-05-11 11:32:40 -07:00
2026-05-15 15:04:04 -07:00
2026-05-26 10:34:43 +02:00
2026-05-19 12:55:34 -07:00
2026-05-06 02:12:31 +00:00
2026-05-20 16:03:51 -07:00
2026-05-20 16:03:51 -07:00
2026-05-26 11:01:18 +02:00
2026-05-05 15:25:19 -07:00
2026-05-19 11:03:47 -07:00
2026-05-07 11:33:47 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 10:58:50 -07:00
2026-05-27 11:09:33 -07:00
2026-05-04 11:46:03 -07:00
2026-05-04 11:46:03 -07:00
2026-05-19 01:24:19 +00:00
2026-05-04 11:46:03 -07:00
2026-05-20 15:30:01 +02:00
2026-05-26 20:07:25 +02:00
2026-05-26 20:59:47 -07:00
2026-05-22 13:10:56 -07:00
2026-05-28 07:23:08 -07:00
2026-05-27 15:49:08 +02:00
2026-05-27 15:49:08 +02:00
2026-05-07 18:05:45 +02:00
2026-05-07 18:05:45 +02:00
2026-05-27 11:09:33 -07:00
2026-05-27 11:09:33 -07:00
2026-05-15 11:40:35 +02:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-05-26 14:56:27 -07:00
2026-05-26 14:56:27 -07:00
2026-05-22 12:13:52 +02:00
2026-05-26 14:56:27 -07:00