Files
hermes-agent/hermes_cli
Davy ebcc87ad4f fix(gateway): silence expected launchctl bootout/kickstart noise on macOS
Best-effort bootout calls (unloaded-job recovery, stale-EIO retry,
plist refresh, uninstall) and the handled kickstart -k in
launchd_restart inherited the terminal's stderr, so an expected
unloaded job printed raw launchctl errors around the CLI's own lines:

  Could not find service "ai.hermes.gateway" in domain for user gui: 501
  ↻ launchd job was unloaded; reloading
  Boot-out failed: 3: No such process

Capture them with _CAPTURE_TEXT instead. The kickstart error stays
available as e.stderr for the update_cmd failure diagnostic, and the
post-bootstrap kickstart intentionally stays loud (its failure feeds
the domain-unsupported fallback). Same precedent as the reload
helper, which already runs bootout with 2>/dev/null.

[salvage: picked hermes_cli/gateway.py only; the two capture_output kwarg-assertion tests are
replaced by fd-level invariant tests with a fake launchctl in the follow-up commit]
2026-09-09 10:42:32 -07:00
..
2026-09-07 15:16:44 -07:00