Skip to content

fix(gateway): preserve target HERMES_HOME for systemd install#14450

Open
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/systemd-hermes-home-6729
Open

fix(gateway): preserve target HERMES_HOME for systemd install#14450
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/systemd-hermes-home-6729

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

  • preserve a custom HERMES_HOME for hermes gateway install --system when sudo drops the caller's environment
  • fall back to the target user's login-shell HERMES_HOME before defaulting to ~/.hermes
  • add regression coverage for the systemd unit generation path

Testing

  • python3 -m pytest -o addopts='' tests/hermes_cli/test_gateway_service.py -q

Closes #6729

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Systemd Gateway installation does not honor non-standard HERMES_HOME env variable

2 participants