← Back to Kontasks
Fixed: activeEventSource Reference Error
Removed dead SSE references and added ensureWebSocketConnected function
Output
✓ Fix Applied
Changes Made
| console-state-effects.ts | Replaced dead SSE references with WebSocket-aware code |
| console-websocket-client.ts | Added ensureWebSocketConnected() function |
Before → After
- if (state.currentRequestId && !activeEventSource) { - reconnectWithEventSource(state.currentRequestId, token); - } else if (!activeEventSource) { - pollForOutput(); - } + // WebSocket-only: polling is handled via WebSocket reconnection + if (typeof ensureWebSocketConnected === 'function') { + ensureWebSocketConnected(); + }
Commit
2840ae5d
— Turn: Remove dead SSE references from WebSocket-only console
What's Next?
Konui needs a restart to pick up the changes. Choose an action:
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
consolewebsocketbugfix
Created
8 Jan 2026, 4:15 pm
Updated
8 Jan 2026, 4:15 pm
Timing
⏱️ 81.4s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
Raw Data
{
"id": "d6f69ef8-e48e-44dd-947e-9981ad268d0b",
"type": "general",
"status": "completed",
"title": "Fixed: activeEventSource Reference Error",
"description": "Removed dead SSE references and added ensureWebSocketConnected function",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\">\n<h2 style=\"font-family:sans-serif;color:#22c55e;margin:0 0 16px 0;\">✓ Fix Applied</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#3b82f6;\">Changes Made</h3>\n<table style=\"width:100%;border-collapse:collapse;font-size:0.9rem;\">\n<tr style=\"border-bottom:1px solid #4b5563;\">\n <td style=\"padding:8px;color:#e5c07b;\">console-state-effects.ts</td>\n <td style=\"padding:8px;color:#e0e0e0;\">Replaced dead SSE references with WebSocket-aware code</td>\n</tr>\n<tr>\n <td style=\"padding:8px;color:#e5c07b;\">console-websocket-client.ts</td>\n <td style=\"padding:8px;color:#e0e0e0;\">Added <code style=\"background:#3b3b3b;padding:2px 6px;border-radius:3px;\">ensureWebSocketConnected()</code> function</td>\n</tr>\n</table>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#8b5cf6;\">Before → After</h3>\n<pre style=\"background:#1e1e1e;padding:12px;border-radius:4px;overflow-x:auto;font-size:0.85rem;line-height:1.6;\">\n<span style=\"color:#ef4444;\">- if (state.currentRequestId && !activeEventSource) {</span>\n<span style=\"color:#ef4444;\">- reconnectWithEventSource(state.currentRequestId, token);</span>\n<span style=\"color:#ef4444;\">- } else if (!activeEventSource) {</span>\n<span style=\"color:#ef4444;\">- pollForOutput();</span>\n<span style=\"color:#ef4444;\">- }</span>\n\n<span style=\"color:#22c55e;\">+ // WebSocket-only: polling is handled via WebSocket reconnection</span>\n<span style=\"color:#22c55e;\">+ if (typeof ensureWebSocketConnected === 'function') {</span>\n<span style=\"color:#22c55e;\">+ ensureWebSocketConnected();</span>\n<span style=\"color:#22c55e;\">+ }</span>\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#f59e0b;\">Commit</h3>\n<p style=\"margin:0;font-size:0.9rem;\">\n<code style=\"background:#3b3b3b;padding:4px 8px;border-radius:4px;color:#98c379;\">2840ae5d</code>\n<span style=\"color:#9ca3af;\"> — Turn: Remove dead SSE references from WebSocket-only console</span>\n</p>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\">\n<h4 style=\"margin:0 0 8px 0;color:#fff;\">What's Next?</h4>\n<p style=\"color:#9ca3af;margin:0;\">Konui needs a restart to pick up the changes. Choose an action:</p>\n</div>\n</div>",
"requestedAt": "2026-01-08T06:14:00.000Z",
"requestId": "3df87b8a-54ed-4aea-909a-d64c43341822",
"choices": [
{
"label": "Restart konui",
"value": "Restart konui to apply the fix",
"primary": true
},
{
"label": "Test first",
"value": "Test the changes in dev environment before restarting"
},
{
"label": "Skip restart",
"value": "Leave it for now - changes will apply on next natural restart"
}
],
"turnTiming": {
"totalMs": 81394,
"ttfeMs": 44,
"thinkingMs": 81350,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-08T06:15:10.225Z",
"updatedAt": "2026-01-08T06:15:14.822Z",
"requestId": "3df87b8a-54ed-4aea-909a-d64c43341822",
"scope": "vibetools",
"tags": [
"console",
"websocket",
"bugfix"
],
"targetUser": "claude"
}