Registry Mirror
Skip to content

Conversation

@marcgabe15

@marcgabe15 marcgabe15 commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Node's global fetch ignores the system proxy, so where huggingface.co is only reachable through one, the model download failed with a bare "fetch failed" while the same URL opened in a browser. Model and aligner downloads now go through Electron's net.fetch, which honours the system proxy settings.

Refs #1330

Summary

Related issue

Fixes #

Type of change

  • Bug fix
  • Feature
  • Enhancement
  • Documentation
  • Refactor / maintenance
  • Performance
  • Security

Release impact

  • Patch
  • Minor
  • Major / breaking change
  • No release note needed

Desktop impact

  • Windows
  • macOS
  • Linux
  • Installer / packaging
  • Not platform-specific

Screenshots / video

Testing

Summary by CodeRabbit

  • Bug Fixes
    • Speech model and word-aligner downloads now use Chromium’s network stack, with request details forwarded to the network layer. This aligns both download paths with Electron’s networking behavior.

Node's global fetch ignores the system proxy, so where huggingface.co is
only reachable through one, the model download failed with a bare
"fetch failed" while the same URL opened in a browser. Model and aligner
downloads now go through Electron's net.fetch, which honours the system
proxy settings.

Refs getopenscreen#1330
@marcgabe15

Copy link
Copy Markdown
Collaborator Author

@EtienneLescot for review I think this is the issue given the screenshots from #1330

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a1b75e6b-feb2-41d5-b639-49cd9a00119b
📥 Commits

Reviewing files that changed from the base of the PR and between 91a8b8c and 2821964.

📒 Files selected for processing: 2
  • electron/stt/index.test.ts
  • electron/stt/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

📝 Walkthrough

Model and word-aligner downloads now use Electron’s net.fetch through a shared fetcher. Tests check that the fetcher forwards URLs and request options.

Changes: STT downloads

Layer / File(s) Summary
Chromium fetcher and download paths
electron/stt/index.ts, electron/stt/index.test.ts
A shared fetcher delegates to net.fetch, converts URL inputs to href strings, and passes request options through. Model and aligner downloads use this fetcher. Tests verify URL and option forwarding.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 28219

The model and aligner downloads now use Electron’s Chromium-backed networking after app readiness, forwarding their URLs, headers, and cancellation signals. No concrete merge-blocking risk is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the proxy-related problem and the implemented change, but the required template is largely incomplete. The Summary section is empty, the Related issue section contains a blank… Complete the template. Add the change summary, record the issue as "Refs #1330" in the Related issue section, select the applicable type, release impact, and desktop impact options, and document the testing performed.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: routing STT model downloads through Chromium's network stack.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the proxy-related problem and the implemented change, but the required template is largely incomplete. The Summary section is empty, the Related issue section contains a blank "Fixes #", all change-type and impact options are unchecked, and the Testing section is empty.

Resolution

Complete the template. Add the change summary, record the issue as "Refs #1330" in the Related issue section, select the applicable type, release impact, and desktop impact options, and document the testing performed.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@EtienneLescot
EtienneLescot merged commit 3c9bd5d into getopenscreen:main Oct 19, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants