Provider update check: respect the configured npm registry #13618
oliynykmax
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The provider update check (
fetchNpmLatestVersion,apps/server/src/provider/providerMaintenance.ts) always requestshttps://registry.npmjs.org/<pkg>/latest. On networks where the public registry is blocked and npm goes through an internal mirror (set via.npmrc/npm_config_registry), the request is blocked, times out after 4s, and the advisory is alwaysunknown. On networks that monitor egress, it also creates blocked-connection noise every hour for each provider.Turning off provider update checks stops the request, but then you lose the update notice entirely.
Proposal: use
npm_config_registry(the environment variable npm itself reads) when it's set, and fall back toregistry.npmjs.org. Reading.npmrcwould cover more setups but is more code; the env var alone is a very small change.Happy to send a small PR if this is wanted.
Version: 0.0.43-nightly.20260925.2237, macOS, Claude Code and OpenCode providers.
All reactions