mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-03 13:25:13 +00:00
Kimi Code tokens live ~15 min and only the CLI renews them, so the load state sits in .terminalFailure as its dominant steady state between CLI uses. The Plan tab and tab-strip chip flapped to a reconnect screen every cycle even with a good last snapshot on hand. Extract the display decision into a pure KimiQuotaPresentation helper: terminal-with-data shows the usage bars (flagged idle) and only the no-data case falls through to reconnect. loadedBody stamps an 'as of <time>' caption once a snapshot is older than 10 min, in every state that renders it. The chip's kimiQuotaSummary downgrades terminal-with-data to .stale so the bar and popover keep the last-known rows instead of the reconnect card. Settings' connect/disconnect pane still explains the terminal reason. Adds KimiQuotaPresentationTests. |
||
|---|---|---|
| .. | ||
| CodeBurnMenubar | ||