Repository navigation
feat(copilot): model sandbox credentials.envVars and warn on ignored edit rules - #3940
Merged
Merged
Conversation
…edit rules - Accept `copilot.sandbox.credentials.envVars` (VS Code 1.146+), write it to `chat.agent.sandbox.credentials.envVars`, read it back on import, and warn when a non-empty map lets the sandbox send values to the listed hosts. - Warn when canonical `edit` rules are generated: VS Code registers `chat.tools.edits.autoApprove` with application scope and ignores it in `.vscode/settings.json`. - Document that workspace terminal/URL approvals only apply to the Local harness, and that the network domain lists are user-only settings. Refs #2401 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…dcard hosts
- The `sandbox.credentials.envVars` trust warning now lists each
`VAR -> injectHosts` pair (JSON-quoted).
- An `injectHosts` entry containing `*` gets a separate, stronger warning.
- Tests for keeping/replacing a hand-written envVars, an empty envVars, and
the edits warning with a `*` deny or an `edit: {}` retraction.
Refs #2401
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…pilot-2026-11-19 # Conflicts: # src/generated/docs-content.ts
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.
Summary
Follows up on the 2026-11-19 upstream re-check in #2401 for the
copilotpermissions adapter.copilot.sandbox.credentials.envVars: VS Code 1.146 addedchat.agent.sandbox.credentials.envVars, a map from an environment variable name to{ "injectHosts": [...] }. It is registered without a scope (workspace-settable,restricted: true) in[email protected]. Before this change, authoring it failed the whole permissions load withUnrecognized key: "envVars". It is now accepted (strict{ injectHosts: string[] }values), written to the flat key, declared in the shared-config gateway's owned keys, read back on import (an invalid shape is skipped), and a non-empty map triggers the existing sandbox trust warning, since it lets the sandbox send the values to the listed hosts.editrules:chat.tools.edits.autoApproveis registered withscope: ConfigurationScope.APPLICATIONin[email protected], so VS Code ignores it in.vscode/settings.json. Generate now warns when the canonical config produceseditrules. The key is still written so the file round-trips and output stays the same for existing users; whether to stop emitting it is left to the maintainer.docs/reference/file-formats.mdnow says workspace terminal/URL approvals are honored only by the Local harness (per the approvals docs; the Local harness is removed in February 2027), documentscredentials.envVars, and explains why the network domain lists are not modeled.Still open in #2401
chat.agent.sandbox.network.allowedDomains/deniedDomains,chat.agent.networkFilter): all three areConfigurationScope.APPLICATION(user-only) in 1.147.0, so writing them to the workspace would be ignored. They need a user-scope permissions surface, which is a design decision (VS Code's usersettings.jsonis outside rulesync's home-relative global model).editemission, and the urgency-raised items (prompt files → skills, portable MCP destinations / global scope) — maintainer decisions.Refs #2401
🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4