Files
hermes-agent/agent
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-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-15 05:23:51 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:28:23 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +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-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +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-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 21:29:48 +02:00