mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
A failed fetch put an eight-second toast over an empty window and then took the toast away, leaving a blank popover and no way to try again. The mac replaces the loading overlay with a retry card whenever the fetch failed and there is nothing cached to fall back on, and keeps a toast for the case where numbers are already on screen and the failure is an aside. Do the same, and clear the error whenever the selection changes or a fetch succeeds, since an error describes one selection. Stuck-load recovery is the mac's ladder: while the popover has nothing to show, retry at 8 s doubling to 60 s, six times, then say "Could not load X. Check that the codeburn CLI is installed and working." A fetch torn down across sleep can leave its in-flight mark behind, which would make every retry bail on the guard, so a mark older than the CLI's own 60 s timeout is cleared first. A younger one is left alone, so recovery never races a fetch that is still going to answer. The toast is anchored to the popover card rather than to the window: the card now sits inside a transparent gutter, so an absolute offset from the window is 12 px out. |
||
|---|---|---|
| .. | ||
| dist | ||
| Scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| DEVELOPMENT.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tokens.json | ||
| tsconfig.json | ||
| vite.config.ts | ||