AgentGUI v1.0.967
AgentGUI v1.0.967
Latest commit: 3475752
fix: route sync WebSocket through BASE_URL prefix and surface connect errors
The frontend opened the /sync WebSocket at an absolute root path, discarding
the BASE_URL router prefix. wsUrl() only used the backend URL to derive
proto/host and always appended a hardcoded "/sync", so behind a path-routing
proxy that only forwards /gm/* the socket would never reach the backend.
- wsUrl() now derives a path prefix from the custom-backend URL pathname, or
from window.__BASE_URL when same-origin, so it connects to /gm/sync. - The ws "error" listener now rejects with a real Error instead of the
messageless error Event, so failures log a usable reason instead of
"agents fetch failed: undefined".
Verified in a real browser against https://buildesk.acc.l-inc.co.za/gm/:
the socket connects to wss://.../gm/sync, sync_connected is received, the
agent list loads, and the console is clean.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Install with:
bun x agentgui@latest
npm install -g agentgui
npx agentguiWeb interface: http://localhost:3000/gm/
Notes:
- Data stored in
~/.gmgui/folder - Requirements: Node.js 18+