openclaw/src/hooks
Anton Sotkov 26ce65995f fix(gmail): keep tailscale serve path at root
The default Gmail hook path configured by `clawdbot hooks gmail setup` is `/gmail-pubsub`. Tailscale strips the mount path before proxying, so the request lands on `/` and the hook 404s under the default configuration.

When Tailscale is enabled, always listen on `/` internally and keep the public URL on the configured path (defaulting to `/gmail-pubsub`). This makes default and custom paths work reliably.

Alternative (not implemented here): call tailscale with a full target URL so the backend keeps the path, e.g. `tailscale funnel --set-path /gmail-pubsub http://127.0.0.1:8788/gmail-pubsub`. We did not take this path because it requires changing the CLI invocation to pass URLs (not ports) plus extra validation, which is a larger behavior change.
2026-01-10 18:51:12 +01:00
..
gmail-ops.ts fix(gmail): keep tailscale serve path at root 2026-01-10 18:51:12 +01:00
gmail-setup-utils.test.ts fix(ci): stabilize windows tests 2026-01-08 03:54:35 +00:00
gmail-setup-utils.ts fix: improve gmail tailscale errors 2026-01-07 03:10:35 +01:00
gmail-watcher.test.ts style: format gmail watcher test 2026-01-06 01:46:59 +00:00
gmail-watcher.ts fix: stop gmail watcher restart on bind error 2026-01-06 01:40:15 +00:00
gmail.test.ts fix(gmail): keep tailscale serve path at root 2026-01-10 18:51:12 +01:00
gmail.ts fix(gmail): keep tailscale serve path at root 2026-01-10 18:51:12 +01:00