Conversation
The word aligners already abort after 30 s without a byte, but the Whisper and VAD model downloads had no such limit. A connection that goes silent, such as a filtered route that drops packets rather than refusing them, left the 264 MB download pending forever: the editor showed "Downloading speech model" with no error and no way to retry. ensureModels now uses the same stall limit, so a silent download fails with "download stalled" and the existing retry path applies. Refs #1636
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
The Whisper and VAD model downloads had no stall limit, unlike the word aligners (30 s without a byte). When the connection goes silent, for example on a filtered route that drops packets instead of refusing them, the 264 MB download stays pending forever. The editor shows "Downloading speech model" with no error and no way to retry, which matches the screenshot in #1636.
ensureModelsnow uses the same stall limit (DOWNLOAD_STALL_MS, renamed fromALIGNER_STALL_MS). A silent download fails with "download stalled", leaves no.partialfile, and the existing retry path applies.Proxy handling is not the cause here: since #1330 the downloads already go through Chromium's
net.fetch, which honours the system proxy (shipped in v2.2.0).This makes the failure visible and retryable. It does not make huggingface.co reachable where it is blocked; that would need a mirror, which is a product decision.
Related issue
Refs #1636
Type of change
Release impact
Desktop impact
Testing
ensureModelsagainst a server that never answers rejects withstalled. It times out on the old code and passes with the fix.npx vitest --run electron/stt/modelManager.test.ts: 20 passed.npx tsc --noEmitandnpx tsc -p tsconfig.test.json --noEmit: clean.biome checkon the changed files: clean.🤖 Generated with Claude Code
Summary by CodeRabbit