picoclaw/web/frontend/src
Guoguo 6a8552a664
fix(web): derive WebSocket URL from browser location instead of backend (#2405)
The frontend previously used ws_url returned by /api/pico/token, which
is built from the launcher's own port. Behind a reverse proxy this can
produce incorrect URLs (e.g. ws://localhost:18800 instead of the
proxy's public address).

Since the launcher already proxies /pico/ws on the same port, the
frontend can simply use window.location.host to construct the
WebSocket URL, which is always correct regardless of proxy layers.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 17:37:01 +08:00
..
api feat(provider): support custom headers injection for HTTP providers (#2402) 2026-04-07 16:05:21 +08:00
components feat(provider): support custom headers injection for HTTP providers (#2402) 2026-04-07 16:05:21 +08:00
features/chat fix(web): derive WebSocket URL from browser location instead of backend (#2405) 2026-04-07 17:37:01 +08:00
hooks feat(web): support image messages in pico chat (#2299) 2026-04-03 14:15:20 +08:00
i18n feat(provider): support custom headers injection for HTTP providers (#2402) 2026-04-07 16:05:21 +08:00
lib feat(web): protect launcher dashboard with token and SPA login (#1953) 2026-03-29 13:11:43 +08:00
routes fix(web): improve logs panel scroll handling (#2305) 2026-04-03 15:37:23 +08:00
store feat(web): support image messages in pico chat (#2299) 2026-04-03 14:15:20 +08:00
index.css feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
main.tsx feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
routeTree.gen.ts feat(web): add skill marketplace hub and registry install flow (#2246) 2026-04-01 19:25:31 +08:00