Repository navigation
Conversation
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
Contributor
|
Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:
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
|
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: