← Back to Kontasks
Timeline Bug Investigation - Two Issues Found
Identified root causes for account switch system event and duplicate timeline entries
Output
🔍 Timeline Bug Investigation
Bug 1: Account Switch System Event Missing
Location: konui/src/router.ts:3079-3092
Problem: Account switch only broadcasts WebSocket event, does NOT create persisted system event.
// Current code only does:
adminBroadcast.broadcastAccountSwitch(...);
// Missing:
gvSystemEventStore.createSystemEvent({...});
adminBroadcast.broadcast({ type: 'system_event', ... });Compare to service_restart at line 5128 which does both.
Bug 2: Duplicate Timeline Entries
Location: konui/src/views/layout.ts:1621-1637
Problem: handleKontaskCreatedEvent calls both:
showAdminNotification()→ which callsaddTimelineSystemEvent()→ adds gray system markerhandleFlowTimelineKontaskEvent()→ adds colored kontask card
Result: Same kontask appears twice on timeline (once as system event, once as kontask card).
✅ Fixes Required
| Bug 1 | Add gvSystemEventStore.createSystemEvent() call to account switch endpoint |
| Bug 2 | Skip addTimelineSystemEvent in showAdminNotification for kontask events |
Both fixes are straightforward. Shall I implement them?
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
greatvibe
Tags
timelinebugfixui
Created
11 Jan 2026, 11:08 pm
Updated
11 Jan 2026, 11:17 pm
Timing
⏱️ 124.6s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
📋 Claude's Context
Session
ses_f1a97fe1...
Raw Data
{
"id": "f9f547b7-32bc-4604-9c5d-434733714cf4",
"type": "general",
"status": "completed",
"title": "Timeline Bug Investigation - Two Issues Found",
"description": "Identified root causes for account switch system event and duplicate timeline entries",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\"><h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">🔍 Timeline Bug Investigation</h2><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;border-left:3px solid #f43f5e;\"><h3 style=\"color:#f43f5e;margin:0 0 12px 0;font-size:14px;\">Bug 1: Account Switch System Event Missing</h3><p style=\"margin:0 0 8px 0;color:#e0e0e0;\"><strong>Location:</strong> <code style=\"background:#3d3d3d;padding:2px 6px;border-radius:3px;\">konui/src/router.ts:3079-3092</code></p><p style=\"margin:0 0 8px 0;color:#e0e0e0;\"><strong>Problem:</strong> Account switch only broadcasts WebSocket event, does NOT create persisted system event.</p><pre style=\"background:#1a1a1a;padding:12px;border-radius:4px;overflow-x:auto;margin:8px 0;color:#e5c07b;\">// Current code only does:\nadminBroadcast.broadcastAccountSwitch(...);\n\n// Missing:\ngvSystemEventStore.createSystemEvent({...});\nadminBroadcast.broadcast({ type: 'system_event', ... });</pre><p style=\"margin:8px 0 0 0;color:#7f848e;\">Compare to service_restart at line 5128 which does both.</p></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;border-left:3px solid #f59e0b;\"><h3 style=\"color:#f59e0b;margin:0 0 12px 0;font-size:14px;\">Bug 2: Duplicate Timeline Entries</h3><p style=\"margin:0 0 8px 0;color:#e0e0e0;\"><strong>Location:</strong> <code style=\"background:#3d3d3d;padding:2px 6px;border-radius:3px;\">konui/src/views/layout.ts:1621-1637</code></p><p style=\"margin:0 0 8px 0;color:#e0e0e0;\"><strong>Problem:</strong> <code>handleKontaskCreatedEvent</code> calls both:</p><ol style=\"margin:8px 0;padding-left:20px;color:#e0e0e0;\"><li><code>showAdminNotification()</code> → which calls <code>addTimelineSystemEvent()</code> → adds <span style=\"color:#7f848e;\">gray system marker</span></li><li><code>handleFlowTimelineKontaskEvent()</code> → adds <span style=\"color:#c678dd;\">colored kontask card</span></li></ol><p style=\"margin:8px 0 0 0;color:#e0e0e0;\">Result: Same kontask appears twice on timeline (once as system event, once as kontask card).</p></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#98c379;margin:0 0 12px 0;font-size:14px;\">✅ Fixes Required</h3><table style=\"width:100%;border-collapse:collapse;font-size:13px;\"><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 0;color:#61afef;\">Bug 1</td><td style=\"padding:8px 0;\">Add <code>gvSystemEventStore.createSystemEvent()</code> call to account switch endpoint</td></tr><tr><td style=\"padding:8px 0;color:#61afef;\">Bug 2</td><td style=\"padding:8px 0;\">Skip <code>addTimelineSystemEvent</code> in <code>showAdminNotification</code> for kontask events</td></tr></table></div><p style=\"color:#7f848e;margin:0;font-size:12px;\">Both fixes are straightforward. Shall I implement them?</p></div>",
"requestedAt": "2026-01-11T11:03:00.000Z",
"requestId": "de56ba40-1866-4ab5-b976-a2a88bc85112",
"choices": [
{
"label": "Fix both bugs",
"value": "Fix both timeline bugs: 1) Add system event for account switch, 2) Fix duplicate kontask entries",
"primary": true
},
{
"label": "Fix Bug 1 only",
"value": "Fix only the account switch system event bug"
},
{
"label": "Fix Bug 2 only",
"value": "Fix only the duplicate kontask timeline entry bug"
}
],
"turnTiming": {
"totalMs": 124557,
"ttfeMs": 53,
"thinkingMs": 124504,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-11T13:08:22.994Z",
"updatedAt": "2026-01-11T13:17:33.849Z",
"requestId": "de56ba40-1866-4ab5-b976-a2a88bc85112",
"scope": "greatvibe",
"tags": [
"timeline",
"bugfix",
"ui"
],
"sessionId": "ses_f1a97fe1-589"
}