mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 21:51:28 +00:00
When the Control UI is served behind a reverse proxy at a sub-path
(e.g., /claw/bot-name/), the default gatewayUrl was computed as
wss://{host} without including the basePath. This caused WebSocket
connections to go to the origin root, which fails when a path-based
reverse proxy expects connections at the sub-path.
The fix reuses the existing basePath detection logic
(inferBasePathFromPathname) to include the sub-path in the default
WebSocket URL, e.g., wss://host:8443/claw/bot-name.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>