← Back to Kontasks
Turn: Handle Exhausted Account Switching
Graceful handling when switching to accounts with no remaining quota
Output
✓ Exhausted Account Handling Fixed
The Problem
When switching to the 20x account at 100% usage:
- Auto-orientation started immediately
- Claude failed with "You're out of extra usage"
- Console got stuck in "RECONNECTING..." state
- No clear recovery path - had to manually switch back
The Fix
| Per-account usage cache | Stores usage in localStorage when each account is active |
| Show cached usage for all accounts | Dimmed bars show last-known usage even for inactive accounts |
| Exhausted account detection | Accounts at 100% show ⚠ quota exhausted warning |
| Skip orientation for exhausted | Shows helpful message instead of failing Claude turn |
| Visual styling | Exhausted accounts dimmed with red left border |
New Behavior
When you tap an exhausted account:
- Account switch happens (symlink changes)
- No auto-orientation starts
- Console shows: "⚠️ Switched to exhausted account. Quota will reset soon."
- Console shows: "💡 Tip: Switch to another account with available quota."
Commit: aa644d06Next Steps
Restart konui to apply changes, then test by switching between accounts.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
accountsuimobile
Created
8 Jan 2026, 12:46 pm
Updated
8 Jan 2026, 12:46 pm
Timing
⏱️ 271.7s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
🔗 Git Commit
aa644d06
Raw Data
{
"id": "5a361b95-884f-464d-9109-15792c59daa0",
"type": "general",
"status": "completed",
"title": "Turn: Handle Exhausted Account Switching",
"description": "Graceful handling when switching to accounts with no remaining quota",
"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;\">✓ Exhausted Account Handling Fixed</h2><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#22c55e;\">The Problem</h4><p style=\"color:#9ca3af;margin:0 0 12px 0;\">When switching to the 20x account at 100% usage:</p><ul style=\"margin:0;padding-left:20px;color:#e0e0e0;line-height:1.8;\"><li>Auto-orientation started immediately</li><li>Claude failed with \"You're out of extra usage\"</li><li>Console got stuck in \"RECONNECTING...\" state</li><li>No clear recovery path - had to manually switch back</li></ul></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#3b82f6;\">The Fix</h4><table style=\"width:100%;color:#e0e0e0;font-size:0.9rem;\"><tr><td style=\"padding:8px 0;color:#98c379;width:40%;\">Per-account usage cache</td><td style=\"padding:8px 0;\">Stores usage in localStorage when each account is active</td></tr><tr><td style=\"padding:8px 0;color:#98c379;\">Show cached usage for all accounts</td><td style=\"padding:8px 0;\">Dimmed bars show last-known usage even for inactive accounts</td></tr><tr><td style=\"padding:8px 0;color:#98c379;\">Exhausted account detection</td><td style=\"padding:8px 0;\">Accounts at 100% show <span style=\"color:#ef4444;\">⚠ quota exhausted</span> warning</td></tr><tr><td style=\"padding:8px 0;color:#98c379;\">Skip orientation for exhausted</td><td style=\"padding:8px 0;\">Shows helpful message instead of failing Claude turn</td></tr><tr><td style=\"padding:8px 0;color:#98c379;\">Visual styling</td><td style=\"padding:8px 0;\">Exhausted accounts dimmed with red left border</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h4 style=\"margin:0 0 12px 0;color:#f59e0b;\">New Behavior</h4><p style=\"color:#9ca3af;margin:0 0 8px 0;\">When you tap an exhausted account:</p><ol style=\"margin:0;padding-left:20px;color:#e0e0e0;line-height:1.8;\"><li>Account switch happens (symlink changes)</li><li>No auto-orientation starts</li><li>Console shows: \"⚠️ Switched to exhausted account. Quota will reset soon.\"</li><li>Console shows: \"💡 Tip: Switch to another account with available quota.\"</li></ol></div><div style=\"background:#16a34a;padding:12px 16px;border-radius:6px;margin-bottom:16px;\"><code style=\"color:#fff;\">Commit: aa644d06</code></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\"><h4 style=\"margin:0 0 8px 0;color:#fff;\">Next Steps</h4><p style=\"color:#9ca3af;margin:0;\">Restart konui to apply changes, then test by switching between accounts.</p></div></div>",
"requestedAt": "2026-01-08T02:50:00.000Z",
"requestId": "c4566300-951e-4b74-9758-06d605568844",
"commitSha": "aa644d06",
"choices": [
{
"label": "Restart konui",
"value": "Restart konui to apply the exhausted account handling changes",
"primary": true
},
{
"label": "Show diff",
"value": "Show me the full git diff of the changes made"
},
{
"label": "Run tests",
"value": "Run konui tests to verify no regressions"
}
],
"turnTiming": {
"totalMs": 271669,
"ttfeMs": 50,
"thinkingMs": 271619,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-08T02:46:39.853Z",
"updatedAt": "2026-01-08T02:46:45.074Z",
"requestId": "c4566300-951e-4b74-9758-06d605568844",
"scope": "vibetools",
"tags": [
"accounts",
"ui",
"mobile"
],
"targetUser": "claude"
}