David Rudduck and Vincent Koc
11e1363d2d
feat(hooks): add trigger and channelId to plugin hook agent context ( #28623 )
...
* feat(hooks): add trigger and channelId to plugin hook agent context
Adds `trigger` and `channelId` fields to `PluginHookAgentContext` so
plugins can determine what initiated the agent run and which channel
it originated from, without session-key parsing or Redis bridging.
trigger values: "user", "heartbeat", "cron", "memory"
channelId values: "telegram", "discord", "whatsapp", etc.
Both fields are threaded through run.ts and attempt.ts hookCtx so all
hook phases receive them (before_model_resolve, before_prompt_build,
before_agent_start, llm_input, llm_output, agent_end).
channelId falls back from messageChannel to messageProvider when the
former is not set. followup-runner passes originatingChannel so queued
followup runs also carry channel context.
* docs(changelog): note hook context parity fix for #28623
---------
Co-authored-by: Vincent Koc <[email protected] >
2026-03-02 17:39:20 -08:00
..
2026-03-02 23:50:36 +00:00
2026-03-01 11:05:35 -06:00
2026-03-02 20:05:12 -05:00
2026-03-03 00:40:15 +00:00
2026-02-24 23:55:27 +00:00
2026-03-02 20:05:12 -05:00
2026-02-22 11:09:43 +00:00
2026-02-23 11:45:18 +05:30
2026-03-03 01:05:24 +00:00
2026-02-26 22:14:22 +01:00
2026-03-02 23:50:36 +00:00
2026-03-02 17:39:20 -08:00
2026-02-22 11:09:43 +00:00
2026-02-26 02:36:56 -05:00
2026-02-26 02:36:56 -05:00
2026-02-26 02:36:56 -05:00
2026-03-02 21:31:36 +00:00
2026-02-22 11:09:43 +00:00
2026-02-26 02:36:56 -05:00
2026-02-26 02:36:56 -05:00
2026-02-23 22:16:45 +00:00
2026-03-03 00:40:15 +00:00
2026-03-03 01:06:00 +00:00
2026-03-02 19:57:33 +00:00
2026-02-26 14:47:22 +00:00
2026-03-02 19:57:33 +00:00
2026-02-26 14:47:22 +00:00
2026-02-23 03:18:55 -05:00
2026-02-26 15:25:42 -05:00
2026-02-26 15:25:42 -05:00
2026-03-02 21:31:36 +00:00
2026-02-26 14:47:22 +00:00
2026-03-03 00:40:15 +00:00
2026-03-03 00:40:15 +00:00
2026-02-26 14:47:22 +00:00
2026-02-26 14:47:22 +00:00
2026-02-26 14:47:22 +00:00
2026-02-23 05:20:14 +01:00
2026-03-02 07:13:10 +00:00
2026-02-26 14:47:22 +00:00
2026-02-26 14:47:22 +00:00
2026-02-23 03:18:55 -05:00
2026-02-23 12:44:23 +00:00
2026-02-23 23:29:27 +00:00
2026-03-03 00:02:37 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 21:35:20 +00:00
2026-03-02 00:41:21 -08:00
2026-02-22 08:26:11 +00:00
2026-03-02 07:13:10 +00:00
2026-02-22 11:09:43 +00:00
2026-02-22 11:07:07 +00:00
2026-02-22 21:52:10 +00:00
2026-02-22 21:19:09 +00:00
2026-03-02 20:05:12 -05:00
2026-03-03 00:02:37 +00:00
2026-02-22 11:09:43 +00:00
2026-02-23 21:31:12 -05:00
2026-03-02 00:10:51 +00:00
2026-03-02 00:42:22 +00:00
2026-02-22 11:09:43 +00:00
2026-02-26 17:41:24 +01:00
2026-02-22 11:09:43 +00:00
2026-02-22 10:58:04 +00:00
2026-02-22 11:12:48 +00:00
2026-02-25 19:47:16 -05:00
2026-02-25 19:47:16 -05:00
2026-03-02 21:31:36 +00:00
2026-03-02 21:31:36 +00:00
2026-02-26 04:06:03 -05:00
2026-03-02 21:31:36 +00:00
2026-02-22 17:11:54 +00:00
2026-02-28 14:45:10 +05:30
2026-03-02 20:05:12 -05:00
2026-02-23 14:07:16 -05:00
2026-02-22 19:18:59 -05:00
2026-02-22 19:18:59 -05:00
2026-02-26 05:34:58 -05:00
2026-03-01 10:21:25 -06:00
2026-03-03 00:15:14 +00:00
2026-03-02 18:35:40 +00:00
2026-03-02 18:35:40 +00:00
2026-02-22 11:12:48 +00:00
2026-03-01 14:23:46 -08:00
2026-03-01 14:23:46 -08:00
2026-02-24 14:40:06 +00:00
2026-03-02 19:57:33 +00:00
2026-02-22 23:33:15 +01:00
2026-02-26 21:57:52 +01:00
2026-02-22 08:12:55 +00:00
2026-03-01 14:35:46 -08:00
2026-03-01 16:36:01 -08:00
2026-03-02 21:31:36 +00:00
2026-03-02 01:48:14 +00:00
2026-03-03 00:15:14 +00:00
2026-03-02 13:24:49 -08:00
2026-02-24 04:10:52 +00:00
2026-02-22 19:08:59 +01:00
2026-03-02 05:33:07 +00:00
2026-03-02 13:24:49 -08:00
2026-03-02 05:33:07 +00:00
2026-03-02 05:33:07 +00:00
2026-03-03 01:06:00 +00:00
2026-02-22 11:07:46 +00:00
2026-02-22 11:07:46 +00:00
2026-02-22 11:07:46 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 17:06:34 +00:00
2026-02-23 21:31:12 -05:00
2026-02-23 21:31:12 -05:00
2026-02-23 22:16:45 +00:00
2026-02-26 14:47:22 +00:00
2026-03-02 05:33:07 +00:00
2026-03-02 05:33:07 +00:00
2026-03-02 13:24:49 -08:00
2026-03-02 21:39:43 +00:00
2026-03-02 13:24:49 -08:00
2026-02-23 21:17:37 -05:00
2026-03-03 00:02:37 +00:00
2026-03-03 00:02:37 +00:00
2026-02-22 21:35:20 +00:00
2026-02-22 21:19:09 +00:00
2026-03-02 07:13:10 +00:00
2026-02-26 14:47:22 +00:00
2026-03-03 00:40:15 +00:00
2026-03-03 00:40:15 +00:00
2026-02-26 14:47:22 +00:00
2026-03-02 19:57:33 +00:00
2026-02-26 01:14:57 -05:00
2026-03-02 18:12:11 +00:00
2026-03-02 18:12:11 +00:00
2026-03-02 00:41:21 -08:00
2026-02-28 13:37:21 -08:00
2026-02-22 11:10:05 +00:00
2026-02-23 03:18:55 -05:00
2026-02-22 11:10:05 +00:00
2026-03-02 18:12:11 +00:00
2026-02-26 14:47:22 +00:00
2026-02-23 23:29:27 +00:00
2026-03-02 19:57:33 +00:00
2026-03-01 20:49:45 -08:00
2026-02-22 11:10:05 +00:00
2026-02-26 17:41:24 +01:00
2026-02-26 18:49:48 +00:00
2026-02-26 17:41:24 +01:00
2026-03-03 00:15:14 +00:00
2026-03-02 13:24:49 -08:00
2026-02-22 11:07:07 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 19:08:59 +01:00
2026-02-22 11:07:07 +00:00
2026-02-22 11:10:05 +00:00
2026-02-23 22:39:48 +00:00
2026-03-02 14:36:41 +00:00
2026-03-02 14:36:41 +00:00
2026-03-02 14:36:41 +00:00
2026-02-23 22:39:48 +00:00
2026-02-23 22:39:48 +00:00
2026-02-22 11:26:17 +01:00
2026-02-22 11:10:05 +00:00
2026-03-02 14:36:41 +00:00
2026-03-02 19:57:33 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 18:55:44 +01:00
2026-02-22 21:19:09 +00:00
2026-03-02 12:55:47 +00:00
2026-02-23 12:29:09 -05:00
2026-03-02 07:13:10 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 21:19:09 +00:00
2026-02-22 21:19:09 +00:00
2026-02-23 22:16:45 +00:00