← Back to Kontasks
Prompt Text Lost on Recovery - Root Cause Found
Prompt comes from localStorage (5min timeout) but working history comes from konsole (no timeout)
Output
🐛 Prompt Lost on Recovery - Root Cause
The Mismatch
| Working History | Stored in konsole (server-side) - no timeout |
| Prompt Text | Stored in localStorage - 5 minute timeout |
| Result | Working history survives, but prompt expires → "Current request..." |
Timeline of Your Session
- You sent prompt about delete button
- localStorage saved:
{prompt, requestId, timestamp} - I responded, working history stored in konsole
- You navigated away, came back after ~5+ minutes
isPendingStateValid()returnedfalse(expired)- Working history loaded from konsole ✓
- Prompt not loaded (considered stale) ✗
Fix Options
| Increase timeout | Change from 5min to 30min or 1hr |
| Store prompt in konsole | Include prompt in working history (server-side) |
| Use kontask context | Kontask has requestId - could store original prompt there |
Quick Fix
I can increase the localStorage timeout to 30 minutes. That would cover most navigation scenarios. Want me to do that?
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
consolerecoverybugfix
Created
2 Jan 2026, 8:09 pm
Updated
2 Jan 2026, 8:09 pm
Created By
claude
Raw Data
{
"id": "6964d1b4-58c6-4039-a1f2-af9db1e3f0b6",
"type": "general",
"status": "completed",
"title": "Prompt Text Lost on Recovery - Root Cause Found",
"description": "Prompt comes from localStorage (5min timeout) but working history comes from konsole (no timeout)",
"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;\">🐛 Prompt Lost on Recovery - Root Cause</h2><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#f97316;\">The Mismatch</h4><table style=\"width:100%;border-collapse:collapse;\"><tr><td style=\"padding:8px 12px;color:#61afef;border-bottom:1px solid #444;width:140px;\">Working History</td><td style=\"padding:8px 12px;color:#e0e0e0;border-bottom:1px solid #444;\">Stored in <strong>konsole</strong> (server-side) - no timeout</td></tr><tr><td style=\"padding:8px 12px;color:#61afef;border-bottom:1px solid #444;\">Prompt Text</td><td style=\"padding:8px 12px;color:#e0e0e0;border-bottom:1px solid #444;\">Stored in <strong>localStorage</strong> - 5 minute timeout</td></tr><tr><td style=\"padding:8px 12px;color:#f97316;\">Result</td><td style=\"padding:8px 12px;color:#e0e0e0;\">Working history survives, but prompt expires → \"Current request...\"</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#e5c07b;\">Timeline of Your Session</h4><ol style=\"margin:0;padding-left:20px;color:#e0e0e0;line-height:1.8;\"><li>You sent prompt about delete button</li><li>localStorage saved: <code>{prompt, requestId, timestamp}</code></li><li>I responded, working history stored in konsole</li><li>You navigated away, came back after ~5+ minutes</li><li><code>isPendingStateValid()</code> returned <code>false</code> (expired)</li><li>Working history loaded from konsole ✓</li><li>Prompt not loaded (considered stale) ✗</li></ol></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#98c379;\">Fix Options</h4><table style=\"width:100%;border-collapse:collapse;\"><tr><td style=\"padding:8px 12px;color:#61afef;border-bottom:1px solid #444;width:180px;\">Increase timeout</td><td style=\"padding:8px 12px;color:#e0e0e0;border-bottom:1px solid #444;\">Change from 5min to 30min or 1hr</td></tr><tr><td style=\"padding:8px 12px;color:#61afef;border-bottom:1px solid #444;\">Store prompt in konsole</td><td style=\"padding:8px 12px;color:#e0e0e0;border-bottom:1px solid #444;\">Include prompt in working history (server-side)</td></tr><tr><td style=\"padding:8px 12px;color:#61afef;\">Use kontask context</td><td style=\"padding:8px 12px;color:#e0e0e0;\">Kontask has <code>requestId</code> - could store original prompt there</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\"><h4 style=\"margin:0 0 8px 0;color:#fff;\">Quick Fix</h4><p style=\"color:#9ca3af;margin:0;\">I can increase the localStorage timeout to 30 minutes. That would cover most navigation scenarios. Want me to do that?</p></div></div>",
"requestedAt": "2026-01-02T10:05:00Z",
"requestId": "63d6c477-0448-4993-ac6f-186dacf4c564"
},
"createdBy": "claude",
"createdAt": "2026-01-02T10:09:41.617Z",
"updatedAt": "2026-01-02T10:09:41.748Z",
"requestId": "63d6c477-0448-4993-ac6f-186dacf4c564",
"scope": "vibetools",
"tags": [
"console",
"recovery",
"bugfix"
],
"targetUser": "claude"
}