fix(media): MediaClient's retry backoff works outside Bun
Bun.sleep threw in a browser or Node the first time a piece was retried; setTimeout does the same everywhere. The browser bundle has no Bun.* left. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -140,6 +140,9 @@ New package **`@shade/media`** — see `docs/media.md`.
|
||||
0 looped forever, a huge one held the film in memory, a huge `window` opened
|
||||
a request (a thread, on Kotlin) per piece. The status is now checked
|
||||
(`statusProblem`) and the window capped at 16.
|
||||
- `MediaClient` waited between retries with `Bun.sleep`, so a retry threw in
|
||||
a browser or Node; it uses `setTimeout` now (the browser bundle of
|
||||
`@shade/media` has no `Bun.*` left).
|
||||
- `shade media get` used the sealed file's `meta.name` as the output path,
|
||||
so whoever sealed a file chose where it was written (`../../.bashrc`).
|
||||
Names are now reduced to one safe path component.
|
||||
|
||||
Reference in New Issue
Block a user