Ollama/ AI infrastructure
Detecting a download stall before the first byte
The problem
A connected range request could produce no body bytes while its inactivity timestamp remained unset.
The change
Start the inactivity clock when each range attempt begins and signal completion when the transfer exits, retaining the existing stall threshold and retry behaviour.
The result
Merged upstream with regression coverage for headers arriving without body bytes and for completed transfers. Stall monitoring covers the initial no-progress window and completion no longer waits for the polling tick.
Verification & context
The PR records repeated focused tests, race tests and a controlled local completion benchmark. Its full-repository test command required a separate app UI build for embedded assets.
The completion benchmark measures a local transfer's finalisation delay. It does not measure internet bandwidth. Merged status and linked release ancestry checked on 21 October 2026.