Retry transient foreground requests before surfacing errors

This commit is contained in:
Jonathan Sykes
2026-10-09 21:53:03 +08:00
parent 933e920701
commit d02796b0eb
10 changed files with 282 additions and 26 deletions

View File

@@ -484,3 +484,17 @@ remote toggles against a mocked relay. Transport previews and remote screenshots
are saved in ignored `plans/transport-shots/`. Run `node perf/ui-geometry.mjs`
for the 320–430px search-bar and Saved-row geometry matrix. OS lock-screen buttons
remain platform-rendered through the existing MediaSession handlers.
## Transient retry verification
`retry.mjs` starts the real Bun server behind the local traffic-shaping proxy, then
injects one HTTP 503 into search, one dropped related-video request, and one lazy
chunk load failure. Each path must recover automatically without exposing the
manual related/player Retry affordance. It runs Chromium and WebKit by default;
choose `--browser chromium|webkit` and `--profile lte|lossy|unthrottled` to narrow
it. Retry logic is limited to idempotent GET requests and chunk loads; explicit
save/retry POST actions remain user initiated.
```bash
node perf/retry.mjs --browser all --profile lossy
```