picoclaw/web/frontend
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
..
public feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
scripts build: use WEB_GO for web targets and preserve backend dist directory (#1671) 2026-03-17 15:23:49 +08:00
src fix(web): derive WebSocket URL from browser location instead of backend (#2405) 2026-04-07 17:37:01 +08:00
.editorconfig feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
.gitignore fix(web): render ansi logs with wrapped lines (#1425) 2026-03-12 19:12:19 +08:00
.prettierignore feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
components.json feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
eslint.config.js feat(web): support image messages in pico chat (#2299) 2026-04-03 14:15:20 +08:00
index.html feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
package.json build(deps): bump shadcn from 4.1.1 to 4.1.2 in /web/frontend (#2297) 2026-04-03 09:21:52 +08:00
pnpm-lock.yaml build(deps): bump shadcn from 4.1.1 to 4.1.2 in /web/frontend (#2297) 2026-04-03 09:21:52 +08:00
prettier.config.js feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
tsconfig.app.json feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
tsconfig.json feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
tsconfig.node.json feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
vite.config.ts feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00