agent-orchestrator/packages
Prateek 309bfbbc19 fix: DirectTerminal WebSocket URL behind reverse proxy
When the AO dashboard is served behind a reverse proxy (e.g. Caddy ->
FastAPI -> Next.js), the browser cannot reach the direct terminal
WebSocket server on port 14801. The connection attempt to
wss://hostname:14801/ws times out, leaving terminals stuck at
'Connecting...'.

Fix: detect when running on a standard port (443/80, indicating a
reverse proxy) and use a path-based WebSocket endpoint
(/ao-terminal-ws) instead of the direct port. This allows the proxy
to forward WebSocket connections to the terminal server.

Supports three modes:
1. NEXT_PUBLIC_TERMINAL_WS_PATH env var (explicit path override)
2. Auto-detect reverse proxy (standard port -> /ao-terminal-ws)
3. Direct port access (dev mode, non-standard port -> :14801)
2026-03-07 20:28:00 +05:30
..
agent-orchestrator feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
cli feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
core feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
integration-tests fix: auto-detect free port in ao start <url> config generation (#275) 2026-03-03 15:03:20 +05:30
mobile fix: enable cleartext traffic on Android for local/Tailscale HTTP 2026-03-03 05:17:03 +05:30
plugins feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
web fix: DirectTerminal WebSocket URL behind reverse proxy 2026-03-07 20:28:00 +05:30