agent-orchestrator/packages/web/server
Gaurav Bhola f2986bf863 fix(web): address bugbot review — heartbeat, shutdown, runtime config, cleanup
- Use native WS ping frames for heartbeat so idle browser clients are not
  incorrectly disconnected (browser auto-responds to native ping with pong)
- Pass runtime config to buildMuxWsUrl() so dynamic port/proxy path set via
  TERMINAL_WS_PATH env var is actually used (was fetched but never consumed)
- Delay initial WS connect until runtime config fetch resolves, preventing
  race condition on first load
- shutdown() now terminates all mux clients and closes the WSS, preventing
  orphaned PTY processes on restart
- ws 'error' handler now unsubscribes terminal callbacks alongside session
  subscription to prevent leaks in edge cases where 'close' does not follow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 22:46:29 -07:00
..
__tests__ feat(web): single-socket — multiplex terminals + sessions over one WebSocket 2026-04-06 22:46:29 -07:00
direct-terminal-ws.ts fix(web): address bugbot review — heartbeat, shutdown, runtime config, cleanup 2026-04-06 22:46:29 -07:00
mux-websocket.ts fix(web): address bugbot review — heartbeat, shutdown, runtime config, cleanup 2026-04-06 22:46:29 -07:00
start-all.ts feat(web): single-socket — multiplex terminals + sessions over one WebSocket 2026-04-06 22:46:29 -07:00
terminal-observability.ts Publish ao-web on npm, harden error handling, deduplicate code 2026-03-14 19:01:49 +05:30
tmux-utils.ts fix: terminal servers compatible with hash-based architecture (#87) 2026-02-18 03:28:55 +05:30