← Back to Kontasks
Kontask Display Bug Root Cause
Found why kontask wasn't displayed - missing requestId in context
Output
🔍 Kontask Display Bug - Root Cause Found
Investigated why "Konnect Project File Tree" kontask wasn't displayed after "Done"
Root Cause: Missing requestId
The kontask 4240323b... (Konnect Project File Tree) was created without a requestId:
4240323b... | Konnect Project File Tree | requestId: NONE // Compare to other kontasks that worked: f8738258... | Dashboard RECONNECTING Bug Analysis | requestId: 158765e6... 46bc4071... | Console Draft Fix Applied | requestId: 559a48a7...
Why It Happened
Looking at the kontask creation call for "Project File Tree":
konui_create_task { type: "general", title: "Konnect Project File Tree", context: { output: "...", choices: [...] // NO requestId field! } }
This happened because:
- The conversation was resumed after context summarization
- The summary contained "User's most recent request: Show me the project file tree"
- Claude continued from the summary, but the dashboard console instructions with requestId were not included
- Without the CRITICAL OUTPUT INSTRUCTIONS, Claude didn't know to include
requestIdin context
The Flow
| Step | What Happened |
|---|---|
| 1 | User sent "Show me the project file tree" |
| 2 | Dashboard wrapped prompt with requestId in instructions |
| 3 | Claude started working, context got large |
| 4 | Auto-compacting summarized conversation |
| 5 | Claude resumed from summary (no requestId in summary) |
| 6 | Created kontask without requestId |
| 7 | checkForNewKontask() searched for requestId → not found |
| 8 | Client thought no output → stuck in RECONNECTING |
Fix Options
- Persist requestId in session metadata - Store in konsole session so it survives compaction
- Add requestId to conversation summary - Include in auto-compact context
- Re-inject instructions after compaction - Hook into compact event to re-add dashboard instructions
- Server-side fallback - Match kontasks by sessionId + timestamp if no requestId
What's Next?
The fix requires persisting requestId across auto-compaction:
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
consolebug-analysiskontasks
Created
3 Jan 2026, 10:35 am
Updated
3 Jan 2026, 10:35 am
Created By
claude
Raw Data
{
"id": "b9eecb8d-bd5a-4ef8-b044-bb108457ebaf",
"type": "general",
"status": "completed",
"title": "Kontask Display Bug Root Cause",
"description": "Found why kontask wasn't displayed - missing requestId in context",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:sans-serif;\"><h2 style=\"color:#fff;margin:0 0 16px 0;\">🔍 Kontask Display Bug - Root Cause Found</h2><p style=\"color:#9ca3af;margin:0 0 16px 0;\">Investigated why \"Konnect Project File Tree\" kontask wasn't displayed after \"Done\"</p><div style=\"background:#3a2a1a;border:1px solid #f97316;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#f97316;margin:0 0 12px 0;\">Root Cause: Missing requestId</h3><p style=\"color:#e0e0e0;margin:0 0 12px 0;\">The kontask <code style=\"background:#2d2d2d;padding:2px 6px;border-radius:3px;\">4240323b...</code> (Konnect Project File Tree) was created <strong>without a requestId</strong>:</p><pre style=\"background:#2d2d2d;padding:12px;border-radius:4px;font-family:monospace;font-size:13px;overflow-x:auto;margin:12px 0;\">\n4240323b... | Konnect Project File Tree | requestId: <span style=\"color:#ef4444;\">NONE</span>\n\n<span style=\"color:#7f848e;\">// Compare to other kontasks that worked:</span>\nf8738258... | Dashboard RECONNECTING Bug Analysis | requestId: <span style=\"color:#22c55e;\">158765e6...</span>\n46bc4071... | Console Draft Fix Applied | requestId: <span style=\"color:#22c55e;\">559a48a7...</span></pre></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#61afef;margin:0 0 12px 0;\">Why It Happened</h3><p style=\"color:#e0e0e0;margin:0 0 12px 0;\">Looking at the kontask creation call for \"Project File Tree\":</p><pre style=\"background:#1e1e1e;padding:12px;border-radius:4px;font-family:monospace;font-size:13px;overflow-x:auto;margin:12px 0;\"><span style=\"color:#c678dd;\">konui_create_task</span> {\n type: \"general\",\n title: \"Konnect Project File Tree\",\n context: {\n output: \"...\",\n choices: [...]\n <span style=\"color:#ef4444;\">// NO requestId field!</span>\n }\n}</pre><p style=\"color:#e0e0e0;margin:12px 0 0 0;\"><strong>This happened because:</strong></p><ol style=\"color:#e0e0e0;margin:8px 0;padding-left:20px;\"><li>The conversation was <strong>resumed after context summarization</strong></li><li>The summary contained \"User's most recent request: Show me the project file tree\"</li><li>Claude continued from the summary, but the <strong>dashboard console instructions with requestId were not included</strong></li><li>Without the CRITICAL OUTPUT INSTRUCTIONS, Claude didn't know to include <code>requestId</code> in context</li></ol></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#c678dd;margin:0 0 12px 0;\">The Flow</h3><table style=\"width:100%;color:#e0e0e0;font-size:14px;border-collapse:collapse;\"><tr style=\"border-bottom:1px solid #444;\"><th style=\"padding:8px;text-align:left;\">Step</th><th style=\"padding:8px;text-align:left;\">What Happened</th></tr><tr><td style=\"padding:8px;\">1</td><td style=\"padding:8px;\">User sent \"Show me the project file tree\"</td></tr><tr><td style=\"padding:8px;\">2</td><td style=\"padding:8px;\">Dashboard wrapped prompt with requestId in instructions</td></tr><tr><td style=\"padding:8px;\">3</td><td style=\"padding:8px;\">Claude started working, context got large</td></tr><tr><td style=\"padding:8px;\">4</td><td style=\"padding:8px;\"><span style=\"color:#f97316;\">Auto-compacting</span> summarized conversation</td></tr><tr><td style=\"padding:8px;\">5</td><td style=\"padding:8px;\">Claude resumed from summary <span style=\"color:#ef4444;\">(no requestId in summary)</span></td></tr><tr><td style=\"padding:8px;\">6</td><td style=\"padding:8px;\">Created kontask without requestId</td></tr><tr><td style=\"padding:8px;\">7</td><td style=\"padding:8px;\"><code>checkForNewKontask()</code> searched for requestId → not found</td></tr><tr><td style=\"padding:8px;\">8</td><td style=\"padding:8px;\">Client thought no output → stuck in RECONNECTING</td></tr></table></div><div style=\"background:#1a3a1a;border:1px solid #22c55e;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#22c55e;margin:0 0 12px 0;\">Fix Options</h3><ol style=\"color:#e0e0e0;margin:0;padding-left:20px;line-height:1.8;\"><li><strong>Persist requestId in session metadata</strong> - Store in konsole session so it survives compaction</li><li><strong>Add requestId to conversation summary</strong> - Include in auto-compact context</li><li><strong>Re-inject instructions after compaction</strong> - Hook into compact event to re-add dashboard instructions</li><li><strong>Server-side fallback</strong> - Match kontasks by sessionId + timestamp if no requestId</li></ol></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;font-family:sans-serif;\"><h4 style=\"margin:0 0 8px 0;color:#fff;\">What's Next?</h4><p style=\"color:#9ca3af;margin:0;\">The fix requires persisting requestId across auto-compaction:</p></div>",
"requestedAt": "2026-01-03T10:50:00Z",
"requestId": "bcb9ce00-b13d-40dc-9c32-23b1d68a85e0",
"choices": [
{
"label": "Fix option 1",
"value": "Implement fix: Persist requestId in konsole session metadata so it survives auto-compaction",
"primary": true
},
{
"label": "Fix option 4",
"value": "Implement server-side fallback: Match kontasks by sessionId + timestamp if no requestId"
},
{
"label": "Just document",
"value": "Document this as a known limitation for now"
}
]
},
"createdBy": "claude",
"createdAt": "2026-01-03T00:35:58.124Z",
"updatedAt": "2026-01-03T00:35:58.274Z",
"requestId": "bcb9ce00-b13d-40dc-9c32-23b1d68a85e0",
"scope": "vibetools",
"tags": [
"console",
"bug-analysis",
"kontasks"
],
"targetUser": "claude"
}