CUB-125: implement real-time SSE/WebSocket in React frontend #39

Open
Rex wants to merge 2 commits from agent/rex/CUB-125-realtime-sse into dev

2 Commits

Author SHA1 Message Date
5147997764 CUB-125: implement real-time SSE/WebSocket in React frontend
Some checks failed
Dev Build / build-test (pull_request) Failing after 58s
- Add useSSE hook with exponential back-off reconnect (1s → 30s)
- Add useRealtimeSync hook: maps SSE events to React Query invalidation
  (agent.status → agents; agent.task/agent.progress → tasks+agents; fleet.update → all)
- Add SSEContext/SSEProvider so connection status is available app-wide
- Mount SSEProvider in main.tsx inside QueryClientProvider (no polling)
- Show live/connecting/reconnecting/disconnected badge in sidebar + mobile header
- Update SettingsPage: replace polling interval UI with SSE status panel
- Disable React Query polling (staleTime 60s); all updates pushed via SSE

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 18:10:38 -04:00
17a28a33e1 CUB-119: Add docker-compose.yml + .env.example, remove legacy .NET backend and Angular frontend
Some checks failed
Dev Build / build-test (pull_request) Failing after 1m36s
2026-05-10 08:21:33 -04:00