Bugfix: How to fix dashboard not receiving real-time updates and VIT...
Documentation for Sessions
🐛 Bugfix: How to fix dashboard not receiving real-time updates and VIT...
Date: 2026-01-31
Time: 14:48:39 UTC
Session: editor2-75.12
Agent: backend
Confidence: 95%
Status: ✅ Documented
📋 Decision Context
Question:
How to fix dashboard not receiving real-time updates and VITTO not processing stale handoffs?
Task: Not specified
🎯 Decision Made
Chosen:
Bridge Socket.io events to native WebSocket + add periodic stale check to VITTO
Options Considered:
- No alternatives documented
💭 Reasoning
Dashboard connects via native WebSocket (/ws) but handoff.service.ts only broadcasts via Socket.io (/mcp-stream). Fixed by modifying Socket.io gateway broadcast methods to also call NativeWsGateway methods. VITTO only checked handoffs once on connect - fixed by adding 30-second periodic check with 1-minute stale threshold.
📁 Files Involved
apis/backend-ai-api/src/app/mcp-gateway/mcp-gateway.gateway.tsapis/backend-ai-api/src/app/mcp-gateway/native-ws.gateway.tsapis/backend-ai-api/src/app/vitto/vitto-orchestrator.service.ts
🔗 Related
- Decision ID:
dev_1769870915831_7u3zwpl - Session: 75
- Workspace: editor2
Auto-generated by MCP Smart Consolidation