You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(self-host): keep Hermes webui alive after setup-agent exits (#43)
## Summary
- On macOS, start Hermes via LaunchAgent (`com.deepsql.hermes-webui`) so
IDE/shell process-group teardown cannot SIGKILL the webui right after
`setup-agent.sh` reports ready.
- On Linux, detach with `setsid`/`disown` instead of a bare `nohup`
child of the setup script.
- Export `HERMES_WEBUI_ALLOWED_ORIGINS` from the frontend port (supports
non-default ports like `:3003`).
## Test plan
- [ ] On macOS: run `./scripts/self-host/setup-agent.sh`, confirm `curl
http://127.0.0.1:8787/api/mcp/servers` stays 200 after the script exits
- [ ] `launchctl print gui/$(id -u)/com.deepsql.hermes-webui` shows
`state = running`
- [ ] Agent tab on the frontend (including non-3000 ports) boots and can
call DeepSQL MCP
- [ ] Re-running `setup-agent.sh` reloads the LaunchAgent cleanly
0 commit comments