Connection Status and Recovery
AgentHub surfaces connection health as a status badge. Use it as the first signal before opening low-level debug output.
Badge States
Online · SSE connected: stream is healthyOnline · SSE connecting: stream is openingOnline · SSE reconnecting: stream is retrying after interruptionOnline · SSE idle: no active stream target selectedOffline · SSE disconnected: browser/network is offline
Error Banner vs Connection Badge
Connectivity issues are intentionally represented by connection status whenever possible.
Example:
Connection unavailable (gateway response). Reconnecting...
This message should be reflected by badge transitions (connecting/reconnecting) instead of staying as a persistent error banner.
Recovery Workflow
- Check the connection badge first.
- If reconnecting, wait a short period for stream recovery.
- If still unstable, refresh the active session view.
- If offline, restore network and re-open AgentHub.
- If needed, open
Debug / Rawto inspect transport events.
When to Escalate
Escalate to backend/runtime investigation when:
- Badge oscillates between
connectingandreconnectingfor long periods - Session status advances but no new output arrives
- Multiple agents show stale stream behavior simultaneously