Right now the server URL is hardcoded in the hook script (~/.orbitdock/hook.sh) to http://127.0.0.1:4200/api/hook. If the server binds to a different port or host, the hook silently fails and events just pile up in the spool directory.
The entire server URL should be configurable — ideally through an env var or a config file (like ~/.orbitdock/config.toml). That way if the server port changes, you don't have to remember to go update the hook script too.
Current behavior:
- Server URL is hardcoded on line 40 of
hook.sh
- Changing the server's bind address means manually editing the hook script
Expected behavior:
- Hook script reads the server URL from a config file or env var (e.g.
ORBITDOCK_URL)
- Falls back to a sensible default like
http://127.0.0.1:4200/api/hook if nothing is set
Right now the server URL is hardcoded in the hook script (
~/.orbitdock/hook.sh) tohttp://127.0.0.1:4200/api/hook. If the server binds to a different port or host, the hook silently fails and events just pile up in the spool directory.The entire server URL should be configurable — ideally through an env var or a config file (like
~/.orbitdock/config.toml). That way if the server port changes, you don't have to remember to go update the hook script too.Current behavior:
hook.shExpected behavior:
ORBITDOCK_URL)http://127.0.0.1:4200/api/hookif nothing is set