S002: timeout errors as user cards

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
astar76 2026-12-01 21:36:03 -06:00
commit feed5ec7de

View file

@ -24,3 +24,4 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
## 2026-12-01 — S002 outbound timeouts
- Done: audit found most spawns and HTTP calls already limited. Fixed: `ffmpeg::probe` (no limit), `ffmpeg::inspect` (no kill), music stream and peaks (ffmpeg `-rw_timeout` 20 s idle, peaks read idle 30 s). Helper stays `download::tools::run_lines`.
- Verified: `cargo check` only. Not done: `bail_user!` rewrite of the plain timeout strings; not tested.
- S002 follow-up: timeout texts reworded in plain words (`ffmpeg::run`, `ytdl::extract`, VirusTotal wait). They are NOT `bail_user!`: those helpers return `Result<_, String>` (bail_user needs the command error type), and every caller already shows the string as a "❌ ..." reply. `download/tools.rs` already uses `DlError::user` cards. Turning the helpers into `UserError` would touch many callers; left for later.