Teknium
5a18d0f5f4
fix(gateway): register a shell hook once its consent is recorded, without a restart
...
A non-TTY gateway skips a configured shell hook that has no consent yet. Recording consent
later (CLI prompt, `hermes hooks` revoke, the dashboard, an edited allowlist) only took
effect when a local session opened or the gateway restarted, so a messaging-only gateway
ran tool calls unguarded past a `fail_closed: true` pre_tool_call hook until restart.
The multiplex re-scan watched config.yaml and .env only and never covered the launch
profile; single-profile gateways had no re-check at all.
The 30 s profile watcher now runs on every gateway and, per home (launch + served), re-runs
`sync_from_config` under that home's scope when its shell-hooks-allowlist.json signature
changes: consent registers the hook, revocation unregisters it. It re-runs hook
registration only (idempotent via the per-home registry), never the adapter rebuild,
so no adapter or session is touched by a consent change.
Fixes #132993
Co-authored-by: liuhao1024 <sunsky.lau@gmail.com >
2026-10-18 03:24:34 -07:00
..
2026-10-17 04:23:04 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-16 14:18:18 -07:00
2026-10-15 08:34:18 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 19:54:07 +02:00
2026-10-15 05:23:51 -07:00
2026-10-08 17:22:54 +02:00
2026-10-07 10:57:32 -07:00
2026-10-14 00:29:11 +05:30
2026-10-17 13:29:00 -04:00
2026-10-07 00:07:02 -05:00
2026-10-07 18:15:29 +05:30
2026-10-17 14:25:35 -04:00
2026-09-30 20:01:49 +05:30
2026-10-12 19:19:55 +05:30
2026-10-12 19:19:55 +05:30
2026-10-10 19:22:07 -07:00
2026-10-16 14:21:39 -07:00
2026-10-10 19:22:07 -07:00
2026-10-10 19:22:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-09-29 23:54:34 +05:30
2026-10-08 17:22:54 +02:00
2026-10-03 13:38:29 -07:00
2026-10-08 17:22:54 +02:00
2026-10-17 13:31:15 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 16:26:05 +05:30
2026-10-07 13:20:42 +05:30
2026-10-08 17:22:54 +02:00
2026-10-16 15:21:07 -04:00
2026-10-05 23:33:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 15:21:07 -04:00
2026-10-08 12:09:24 -07:00
2026-10-16 14:18:50 -07:00
2026-10-02 16:44:56 -07:00
2026-10-15 16:26:05 +05:30
2026-10-17 07:23:06 -07:00
2026-10-09 17:34:38 +02:00
2026-10-13 05:15:48 -07:00
2026-10-08 19:28:23 +02:00
2026-10-17 04:23:13 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-10 19:22:07 -07:00
2026-10-17 04:25:00 -07:00
2026-10-16 18:05:39 -04:00
2026-10-16 15:21:07 -04:00
2026-10-16 15:21:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-11 20:10:06 -07:00
2026-10-10 19:22:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 08:38:51 -07:00
2026-10-11 21:41:22 -07:00
2026-10-15 15:15:31 +05:30
2026-10-17 07:23:06 -07:00
2026-10-08 17:22:54 +02:00
2026-10-18 02:31:09 -07:00
2026-10-10 04:27:27 -07:00
2026-10-02 00:50:20 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 10:57:33 -07:00
2026-10-16 14:18:50 -07:00
2026-10-14 14:56:35 -07:00
2026-10-10 04:27:27 -07:00
2026-10-18 02:31:09 -07:00
2026-10-09 14:25:07 -07:00
2026-10-09 17:34:38 +02:00
2026-10-14 20:38:25 -04:00
2026-10-08 17:22:54 +02:00
2026-10-16 07:26:28 -07:00
2026-10-10 04:27:27 -07:00
2026-10-16 15:21:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-10 20:18:10 +05:30
2026-10-16 17:06:08 -04:00
2026-10-09 19:31:10 -07:00
2026-10-10 17:47:35 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 17:59:08 -07:00
2026-10-17 13:29:00 -04:00
2026-10-17 07:23:06 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:28:23 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-17 13:29:00 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-16 02:24:46 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 20:44:53 -07:00
2026-10-17 14:46:41 +05:30
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-11 21:41:22 -07:00
2026-10-12 03:18:48 -07:00
2026-10-13 12:44:39 -07:00
2026-10-13 12:44:39 -07:00
2026-10-08 17:22:54 +02:00
2026-10-07 03:07:33 +05:30
2026-09-28 14:16:18 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 19:54:07 +02:00
2026-10-16 14:21:39 -07:00
2026-10-09 15:36:14 -04:00
2026-09-28 10:21:41 -07:00
2026-10-16 14:36:03 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-17 13:28:18 -04:00
2026-10-14 20:47:20 -04:00
2026-10-17 14:25:35 -04:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-01 09:26:00 -04:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 15:21:07 -04:00
2026-10-16 22:10:26 +02:00
2026-10-08 17:22:54 +02:00
2026-10-17 13:28:18 -04:00
2026-10-17 13:28:18 -04:00
2026-10-17 13:28:18 -04:00
2026-10-17 13:28:18 -04:00
2026-10-16 14:35:30 -07:00
2026-10-15 00:10:16 +05:30
2026-10-10 20:18:10 +05:30
2026-10-17 04:23:13 -07:00
2026-10-15 22:25:22 +02:00
2026-10-16 15:21:07 -04:00
2026-10-16 15:21:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:06:58 +05:30
2026-10-08 17:22:54 +02:00
2026-10-13 22:08:20 +05:30
2026-10-14 00:06:58 +05:30
2026-10-14 00:06:58 +05:30
2026-10-14 00:06:58 +05:30
2026-10-14 00:06:58 +05:30
2026-10-14 00:29:11 +05:30
2026-10-09 02:10:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 10:24:04 -07:00
2026-10-09 17:34:38 +02:00
2026-10-07 03:46:20 -07:00
2026-10-14 00:06:58 +05:30
2026-10-09 17:31:52 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-17 13:29:00 -04:00
2026-10-11 20:10:06 -07:00
2026-10-16 19:42:34 -07:00
2026-10-09 17:34:38 +02:00
2026-10-06 12:31:21 -07:00
2026-10-17 04:23:13 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-10 19:22:07 -07:00
2026-10-13 12:04:33 -07:00
2026-10-10 19:22:07 -07:00
2026-10-06 13:01:39 +05:30
2026-09-27 02:48:48 -05:00
2026-10-14 12:42:16 -04:00
2026-10-17 09:11:41 -07:00
2026-10-10 04:27:27 -07:00
2026-10-09 17:34:38 +02:00
2026-10-10 04:27:27 -07:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 15:21:07 -04:00
2026-10-10 19:22:07 -07:00
2026-09-28 11:29:49 -05:00
2026-09-27 01:10:56 +05:30
2026-10-08 19:08:58 -07:00
2026-10-08 19:08:58 -07:00
2026-10-17 08:03:52 -07:00
2026-10-08 19:08:59 -07:00
2026-09-29 14:53:00 -05:00
2026-10-09 17:34:38 +02:00
2026-10-15 22:25:22 +02:00
2026-10-16 17:49:54 -04:00
2026-10-17 13:28:18 -04:00
2026-10-07 06:48:09 -07:00
2026-10-18 03:24:34 -07:00
2026-10-08 17:22:54 +02:00
2026-10-15 21:01:31 +02:00
2026-10-18 00:47:38 -07:00
2026-10-09 18:18:41 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 19:31:10 -07:00
2026-10-16 15:21:07 -04:00
2026-10-18 06:04:35 +05:30
2026-10-02 04:09:57 -07:00
2026-10-17 13:28:18 -04:00
2026-10-08 19:54:07 +02:00
2026-10-12 13:11:06 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:42:34 -07:00
2026-10-17 04:23:31 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-01 23:50:31 -07:00
2026-10-14 14:09:29 -07:00
2026-10-17 13:28:18 -04:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 12:43:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 06:49:02 -07:00
2026-10-17 13:28:18 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 20:47:20 -04:00
2026-10-08 21:29:48 +02:00
2026-10-17 14:46:41 +05:30
2026-10-08 17:22:54 +02:00
2026-10-17 14:25:35 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 04:27:27 -07:00
2026-10-10 04:27:27 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 19:22:07 -07:00
2026-10-10 19:22:07 -07:00
2026-10-16 14:21:39 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 06:41:07 +05:30
2026-10-14 00:29:11 +05:30
2026-10-17 04:23:04 -07:00
2026-10-08 19:54:07 +02:00
2026-10-13 22:08:20 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-13 12:44:39 -07:00
2026-10-08 17:22:54 +02:00
2026-10-13 12:04:33 -07:00
2026-10-09 17:34:38 +02:00
2026-10-17 08:03:52 -07:00
2026-10-09 17:34:36 +02:00
2026-10-17 07:23:06 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 21:29:48 +02:00
2026-10-17 13:29:00 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00