Abhinav
16d85e2708
Add subagent identity to hook inputs ( #22882 )
...
# What
When a normal hook fires inside a thread-spawned subagent, Codex now
includes these optional top-level fields in the hook input:
- `agent_id`: the child thread id
- `agent_type`: the subagent role
Root-agent hook inputs omit these fields. `SubagentStart` and
`SubagentStop` keep their existing required `agent_id` and `agent_type`
fields because those events are inherently subagent-scoped.
This does not change matcher behavior. Tool hooks still match on tool
name, compact hooks still match on trigger, and `UserPromptSubmit` still
ignores matchers. Only `SubagentStart` and `SubagentStop` match on
`agent_type`.
2026-05-21 14:54:01 -07:00
..
2026-05-19 22:40:41 +00:00
2026-04-21 10:22:36 -07:00
2026-05-21 19:15:18 +00:00
2026-05-21 12:54:00 +02:00
2026-05-19 23:47:48 -07:00
2026-05-20 21:55:21 +00:00
2026-05-07 10:16:10 -07:00
2026-04-26 22:11:49 -07:00
2026-05-21 19:15:18 +00:00
2026-05-20 21:55:21 +00:00
2026-05-20 21:55:21 +00:00
2026-05-21 16:21:23 +02:00
2026-05-20 17:57:36 -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-21 11:13:23 +02:00
2026-05-13 11:15:25 -07:00
2026-05-18 18:48:35 -07:00
2026-05-18 21:03:51 -07:00
2026-05-21 15:07:03 +02:00
2026-05-21 15:07:03 +02:00
2026-05-11 19:51:51 -07:00
2026-05-19 01:13:38 +00:00
2026-05-14 15:16:15 +02:00
2026-05-13 16:59:22 -07:00
2026-05-21 17:19:54 +02: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-04-26 15:10:53 -07:00
2026-04-26 15:10:53 -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-19 11:03:47 -07:00
2026-05-20 17:57:36 -07:00
2026-05-13 11:31:27 +02:00
2026-05-18 10:53:49 -07:00
2026-05-21 12:54:00 +02:00
2026-05-21 14:54:01 -07:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-05-19 16:23:25 -07:00
2026-05-13 11:15:25 -07:00
2026-05-21 17:19:54 +02:00
2026-05-21 17:19:54 +02:00
2026-05-20 17:02:10 -07:00
2026-05-19 11:24:09 +02: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-04-24 17:49:29 -07:00
2026-05-11 11:32:40 -07:00
2026-05-15 15:04:04 -07:00
2026-05-06 22:48:29 -07:00
2026-05-19 12:55:34 -07:00
2026-05-06 02:12:31 +00:00
2026-04-23 10:17:09 -07:00
2026-05-20 16:03:51 -07:00
2026-05-20 16:03:51 -07: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-04-20 22:39:17 -07:00
2026-05-18 21:33:46 -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-18 15:43:01 -07:00
2026-05-06 22:48:29 -07:00
2026-05-19 12:55:34 -07:00
2026-05-18 13:53:58 +02:00
2026-04-26 17:18:09 -07:00
2026-05-07 18:05:45 +02:00
2026-05-07 18:05:45 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 01:26:50 +00:00
2026-04-28 16:36:59 +00:00
2026-05-15 11:40:35 +02:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-05-20 14:52:38 -07:00