← Back to Kontasks
Console Draft Fix Applied
Added clearDraft() calls to all stream completion paths
Output
✅ Console Draft Fix Applied
Added clearDraft() calls to prevent old prompts from being restored after completion
Files Modified
| File | Location | Context |
|---|---|---|
console-streaming.ts | Line 174 | After stream_end with output |
console-streaming.ts | Line 249 | EventSource connected + completed |
console-streaming.ts | Line 277 | EventSource exit event |
console-recovery.ts | Line 184 | Recovery found output |
console-recovery.ts | Line 237 | pollForOutput found output |
Clarification on Your Bug Report
You're right - the kontask from the "Show me project file tree" request was never displayed after "Done". What I saw was the PREVIOUS kontask card.
This means there are actually TWO separate bugs:
- Input restoration bug (FIXED) - Draft wasn't cleared on completion, so old prompt restored on page reload
- Kontask not displayed bug (SEPARATE ISSUE) -
checkForNewKontask()returned false even though kontask existed. This could be:- Race condition - kontask not yet written when lookup happens
- requestId mismatch - kontask created with different requestId
- API lookup failure
Test Results
✓ All 27 konui tests passing
✓ konui restarted on port 8666
What's Next?
The draft fix is applied. For the kontask display bug, I can investigate the requestId matching logic or check server logs.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
consolebug-fix
Created
3 Jan 2026, 10:33 am
Updated
3 Jan 2026, 10:33 am
Created By
claude
Raw Data
{
"id": "46bc4071-3f6a-44c4-8e42-3f064960aba2",
"type": "general",
"status": "completed",
"title": "Console Draft Fix Applied",
"description": "Added clearDraft() calls to all stream completion paths",
"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;\">✅ Console Draft Fix Applied</h2><p style=\"color:#9ca3af;margin:0 0 16px 0;\">Added <code>clearDraft()</code> calls to prevent old prompts from being restored after completion</p><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#4caf50;margin:0 0 12px 0;\">Files Modified</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;\">File</th><th style=\"padding:8px;text-align:left;\">Location</th><th style=\"padding:8px;text-align:left;\">Context</th></tr><tr><td style=\"padding:8px;\"><code>console-streaming.ts</code></td><td style=\"padding:8px;\">Line 174</td><td style=\"padding:8px;\">After stream_end with output</td></tr><tr><td style=\"padding:8px;\"><code>console-streaming.ts</code></td><td style=\"padding:8px;\">Line 249</td><td style=\"padding:8px;\">EventSource connected + completed</td></tr><tr><td style=\"padding:8px;\"><code>console-streaming.ts</code></td><td style=\"padding:8px;\">Line 277</td><td style=\"padding:8px;\">EventSource exit event</td></tr><tr><td style=\"padding:8px;\"><code>console-recovery.ts</code></td><td style=\"padding:8px;\">Line 184</td><td style=\"padding:8px;\">Recovery found output</td></tr><tr><td style=\"padding:8px;\"><code>console-recovery.ts</code></td><td style=\"padding:8px;\">Line 237</td><td style=\"padding:8px;\">pollForOutput found output</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#61afef;margin:0 0 12px 0;\">Clarification on Your Bug Report</h3><p style=\"color:#e0e0e0;margin:0 0 12px 0;\">You're right - the kontask from the \"Show me project file tree\" request was <strong>never displayed</strong> after \"Done\". What I saw was the PREVIOUS kontask card.</p><p style=\"color:#e5c07b;margin:0 0 12px 0;\"><strong>This means there are actually TWO separate bugs:</strong></p><ol style=\"color:#e0e0e0;margin:0;padding-left:20px;\"><li><strong>Input restoration bug</strong> (FIXED) - Draft wasn't cleared on completion, so old prompt restored on page reload</li><li><strong>Kontask not displayed bug</strong> (SEPARATE ISSUE) - <code>checkForNewKontask()</code> returned false even though kontask existed. This could be:<ul style=\"margin-top:8px;\"><li>Race condition - kontask not yet written when lookup happens</li><li>requestId mismatch - kontask created with different requestId</li><li>API lookup failure</li></ul></li></ol></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#98c379;margin:0 0 12px 0;\">Test Results</h3><p style=\"color:#e0e0e0;margin:0;\"><span style=\"color:#4caf50;\">✓</span> All 27 konui tests passing</p><p style=\"color:#e0e0e0;margin:8px 0 0 0;\"><span style=\"color:#4caf50;\">✓</span> konui restarted on port 8666</p></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 draft fix is applied. For the kontask display bug, I can investigate the requestId matching logic or check server logs.</p></div>",
"requestedAt": "2026-01-03T10:35:00Z",
"requestId": "559a48a7-ab56-47f1-bbf1-9addc4504d89",
"choices": [
{
"label": "Investigate kontask display",
"value": "Investigate why kontask wasn't displayed after 'Done' - check requestId matching and lookup logic",
"primary": true
},
{
"label": "Test the fix",
"value": "Send a test prompt and navigate away to verify the draft clearing fix works"
},
{
"label": "Commit changes",
"value": "Commit the clearDraft() fixes"
}
]
},
"createdBy": "claude",
"createdAt": "2026-01-03T00:33:27.893Z",
"updatedAt": "2026-01-03T00:33:28.040Z",
"requestId": "559a48a7-ab56-47f1-bbf1-9addc4504d89",
"scope": "vibetools",
"tags": [
"console",
"bug-fix"
],
"targetUser": "claude"
}