Skip to content

Forward proxy environment variables to the Copilot runtime - #23141

Closed
abhixkj wants to merge 1 commit into
desktop:developmentfrom
abhixkj:fix/copilot-proxy-env
Closed

abhixkj wants to merge 1 commit into
desktop:developmentfrom
abhixkj:fix/copilot-proxy-env

Conversation

@abhixkj

@abhixkj abhixkj commented Nov 7, 2026

Copy link
Copy Markdown

The Copilot SDK replaces, rather than merges, an explicitly supplied client env, so HTTP(S)_PROXY, ALL_PROXY and NO_PROXY never reached the runtime. On networks without direct internet access, token validation then failed and sessions surfaced 'Session was not created with authentication info or custom provider'.

Closes #23139

Closes #[issue number]

Description

Screenshots

Release notes

Notes:

The Copilot SDK replaces, rather than merges, an explicitly supplied client env, so HTTP(S)_PROXY, ALL_PROXY and NO_PROXY never reached the runtime. On networks without direct internet access, token validation then failed and sessions surfaced 'Session was not created with authentication info or custom provider'.

Closes desktop#23139
@abhixkj
abhixkj requested a review from a team as a code owner November 7, 2026 05:08
@abhixkj
abhixkj requested review from sergiou87 and a balanced review from Copilot November 7, 2026 05:08
@github-actions github-actions Bot added external Pull request originating outside of the Desktop core team needs-triage unmet-requirements and removed needs-triage labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:

  • None of the referenced issues have the help wanted label

Please update your PR to address the above. This PR will be automatically closed in 7 days if these requirements are not met.

Full contribution requirements
  1. Include a detailed description of what this PR does
  2. Link to an issue with the help wanted label (use Fixes #123 or Closes #123)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the change forwarding configured proxy settings to the Copilot runtime.

No open issues 🎉

What changed in this PR

This PR addresses #23139 by forwarding proxy environment variables to the Copilot runtime, allowing authentication requests to use configured proxies on networks without direct internet access.

Changes:

  • Forward non-empty uppercase and lowercase proxy settings without passing unrelated environment variables.
  • Preserve explicit client environment overrides.
  • Add tests for proxy filtering and runtime token-validation routing.
File Description
app/​test/​unit/​copilot-sdk-auth-test.ts Adds proxy-filtering and runtime proxy-routing tests.
app/​src/​lib/​stores/​copilot-store.ts Adds a proxy environment helper and applies it when creating the Copilot client.

Review effort: Balanced

@github-actions github-actions Bot closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team unmet-requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot commit message generation fails behind a proxy: SDK client env drops HTTPS_PROXY

2 participants