Skip to content

fix(remote): keep local proxy settings after the remote connects - #1160

Merged
EhabY merged 1 commit into
mainfrom
fix/local-proxy-settings
Oct 22, 2026
Merged

EhabY merged 1 commit into
mainfrom
fix/local-proxy-settings

Conversation

@EhabY

@EhabY EhabY commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

In a Remote-SSH window, every launch shows HTTP Proxy, HTTP Proxy Support settings changed. Reload window to apply., and reloading brings it back.

Remote-SSH starts the server without --use-host-proxy, so http.useLocalProxyConfiguration defaults to false. Once the remote connects, VS Code makes the http.* proxy settings machine scoped and reads them from the remote instead of local user settings. As a result:

Fix

  • LocalProxySettings saves the local values of the five http.* proxy settings while VS Code still reads them locally, and returns those values after the switch.
  • One source for local reads: the HTTP agent, the SSH environment and the reload watcher read the proxy settings through it. coder.* settings still use the normal configuration.
  • A lint rule rejects reading those five keys through VS Code's configuration, so a later change can't bring the bug back.

Tip

Until this ships, set "http.useLocalProxyConfiguration": true in the remote settings to work around it.

Fixes #1161

🤖 Generated with Claude Code

When the remote leaves `http.useLocalProxyConfiguration` off, VS Code makes
the `http.*` proxy settings machine scoped once connected and reads them from
the remote. The reload watcher saw that as a change and prompted after every
reload, and API requests switched to the remote's proxy.

Add `LocalProxySettings`, which keeps the last local values of the five proxy
settings, and read them through it for the HTTP agent, the SSH environment,
and the reload watcher. A lint rule rejects reading these keys through VS
Code's configuration.
@EhabY
EhabY marked this pull request as ready for review October 22, 2026 09:53
@EhabY
EhabY merged commit 92725e2 into main Oct 22, 2026
17 checks passed
@EhabY
EhabY deleted the fix/local-proxy-settings branch October 22, 2026 12:09
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.

Proxy settings reload prompt returns after every reload in Remote-SSH windows

2 participants