Skip to content

fix(agent): check for updates through the configured proxy - #1531

Merged
AnthonyRonning merged 1 commit into
masterfrom
claude/updater-proxy
Nov 10, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
claude/updater-proxy

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1528.

The updater's HTTP client was built with .no_proxy(), so on a network that reaches the internet only through a proxy, Maple Work never found an update. Sign-in, billing and model traffic went through the proxy on the same machine; only update checks connected directly and failed. Settings → About showed "Could not check for updates", and nothing was logged.

Changes

  • Use the configured proxy. Removed .no_proxy(), so update checks and downloads use the same proxy settings as the rest of the app: HTTPS_PROXY/HTTP_PROXY, or else the Windows or macOS manual proxy setting (reqwest's default system-proxy support).
    • A proxy can't change what installs: the feed must carry a minisign signature from a pinned key, each payload must match the signed size and SHA-256, and on macOS and Windows the code signature (codesign, Authenticode) is still checked before installation.
    • The two other no_proxy() clients stay as they are, because both only talk to loopback: the local API test client and plain-HTTP MCP OAuth.
  • Log failures. A failed check, download or saved-update verification now logs its cause chain at warn, for example update check failed: update request failed: error sending request for url (…): client error (Connect): … Connection refused. The UI messages are unchanged. The only URLs in these lines are the fixed feed and package URLs, which carry no user data.
  • Docs. docs/updates.md says which proxy settings apply and that PAC files are not read.

Testing

  • Regression test: update_checks_use_the_configured_proxy runs in a child process, because proxy variables are process-wide. It sets HTTP_PROXY to a test server and points the feed at a closed port, so the signed check can only succeed through the proxy. It also asserts that the proxy received the absolute-form GET for the feed.
    • Passes with this change.
    • With .no_proxy() restored, it fails with Connection refused on the direct connection.
  • Local checks: the pre-commit Agent checks pass on macOS.
  • Not tested end to end. Dev and CI builds have no updater, so the first real proof is a release. A release with this fix should find the following release on the x64 QA VM, which reaches the internet only through an HTTP proxy.

Not covered

  • Older versions: users behind a proxy on 0.0.20 or earlier still can't update automatically, so they need one manual download.
  • PAC files: automatic proxy configuration (PAC/WPAD) is not read on either OS, only manual proxy settings, the same as the rest of the app.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The updater's HTTP client called `.no_proxy()`, so on networks that reach
the internet only through a proxy, update checks failed while sign-in,
billing and model traffic worked. Use the same proxy settings as the rest of
the app: the proxy variables, then the system's manual proxy setting. A proxy
cannot change what installs, because the feed must carry a pinned-key
signature and each payload must match the signed size and SHA-256.

Failed checks, downloads and saved-update verifications now log their cause.

A child-process test sets HTTP_PROXY and points the feed at a closed port,
so the check succeeds only through the proxy. It fails with `.no_proxy()`.

Fixes #1528

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AnthonyRonning
AnthonyRonning merged commit 7de6d28 into master Nov 10, 2026
24 checks passed
@AnthonyRonning
AnthonyRonning deleted the claude/updater-proxy branch November 10, 2026 00:14
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.

Maple Work updater ignores proxies, so users behind one never get updates

1 participant