hermes-agent/website/docs/user-guide/messaging
Teknium 9b01c4d193
fix(update): never spawn an interactive polkit prompt when restarting a system-scope gateway (#45145)
When hermes update restarts a hermes-gateway system service as a
non-root user, the systemctl reset-failed/start/restart calls trigger
polkit's org.freedesktop.systemd1.manage-units TTY authentication
agent. That prompt runs inside a captured subprocess with a 10-15s
timeout, so it flashes and dies before the user can answer, and the
resulting TimeoutExpired was swallowed silently by the loop's blanket
except — the restart phase just vanished with no output.

- Resolve a manage-units command prefix up front: plain systemctl as
  root, sudo -n systemctl as non-root (with a targeted reset-failed
  probe so least-privilege sudoers entries scoped to hermes-gateway*
  qualify), or None when no non-interactive privilege path exists.
- Add --no-ask-password to every manage-units call in the update
  restart path so polkit can never prompt inside a captured subprocess.
- When unprivileged: after a graceful drain, rely on systemd's own
  RestartSec auto-restart (needs no privileges) with a message about
  the wait; skip the force-restart fallback with clear manual
  instructions instead of racing a doomed polkit prompt.
- Surface TimeoutExpired in the restart loop instead of passing
  silently, and add sudo to the system-scope recovery hints.
- Docs: headless-VM note recommending user service + enable-linger,
  or sudo updates / a scoped NOPASSWD sudoers entry for system
  services.
2026-06-12 12:38:15 -07:00
..
_category_.json
…
bluebubbles.md
…
dingtalk.md
…
discord.md
…
email.md
…
feishu.md
…
google_chat.md
…
homeassistant.md
…
index.md fix(update): never spawn an interactive polkit prompt when restarting a system-scope gateway (#45145) 2026-06-12 12:38:15 -07:00
line.md
…
matrix.md fix(matrix): isolate room context and restore reliable inbound dispatch (#18505) 2026-06-11 07:41:43 -04:00
mattermost.md
…
msgraph-webhook.md
…
ntfy.md
…
open-webui.md
…
photon.md fix(photon): migrate user API calls to Spectrum backend 2026-06-08 22:53:01 -07:00
qqbot.md
…
signal.md
…
simplex.md feat(simplex): groups, native attachments, text batching, auto-accept 2026-06-08 21:03:45 -07:00
slack.md fix(gateway): Slack approval UX in threads — block-size overflow + typed-prefix instruction text (#43444) 2026-06-10 02:30:01 -07:00
sms.md
…
teams-meetings.md
…
teams.md
…
telegram.md fix: rich messages follow-ups — reply_parameters, send latch, opt-in default 2026-06-12 11:47:54 -07:00
webhooks.md
…
wecom-callback.md
…
wecom.md
…
weixin.md
…
whatsapp-cloud.md
…
whatsapp.md Merge commit '6110aed9b' into feat/whatsapp-cloud-api 2026-06-10 21:39:22 -04:00
yuanbao.md
…