Repository navigation
Revert "Canvases: Gate project canvas extensions on workspace trust" - #342684
Merged
Joaquín Ruales (jruales) merged 2 commits intoOct 20, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Removing workspace-trust protection from project code execution requires human security review before approval.
2 open issues
What changed in this PR
Reverts #342372, restoring the earlier project canvas extension launch behavior in Agent Host.
Changes:
- Replaces the workspace-trust launch policy with directory-containment checks.
- Removes inherited worktree trust grants and connection-authority trust forwarding.
- Reverts related tests and metadata handling.
| File | Description |
|---|---|
| src/vs/workbench/services/workspaces/test/common/workspaceTrust.test.ts | Removes authority-query assertions. |
| src/vs/workbench/services/workspaces/common/workspaceTrust.ts | Removes the authority trust query. |
| src/vs/platform/workspace/common/workspaceTrust.ts | Removes the optional trust-query interface method. |
| src/vs/platform/agentHost/test/node/providerIntegration/copilotMockLlm.integrationTest.ts | Removes canvas-test trust configuration. |
| src/vs/platform/agentHost/test/node/copilotProjectExtensionLaunchPolicy.test.ts | Deletes launch-policy tests. |
| src/vs/platform/agentHost/test/node/copilotAgent.test.ts | Reverts trust-grant tests and metadata expectations. |
| src/vs/platform/agentHost/test/node/agentHostSessionStateOwnershipGuard.test.ts | Adjusts metadata-read allowances. |
| src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts | Removes authority trust forwarding tests. |
| src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts | Removes launch-plan trust grants. |
| src/vs/platform/agentHost/node/copilot/copilotProjectExtensionLaunchPolicy.ts | Deletes the trust-aware launch policy. |
| src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts | Removes the trust-grant accessor. |
| src/vs/platform/agentHost/node/copilot/copilotAgent.ts | Restores containment-only launches and earlier metadata handling. |
| src/vs/platform/agentHost/node/codex/codexAgent.ts | Removes authority-wide trust handling. |
| src/vs/platform/agentHost/node/agentHostSessionPrewarmer.ts | Restores earlier prewarm trust checks. |
| src/vs/platform/agentHost/common/agentHostSchema.ts | Removes authority trust configuration and helper. |
| src/vs/platform/agentHost/browser/agentHostProtocolClient.ts | Stops forwarding connection-authority trust. |
Review effort: Balanced
Joaquín Ruales (jruales)
marked this pull request as draft
October 19, 2026 21:03
auto-merge was automatically disabled
October 19, 2026 21:03
Pull request was converted to draft
Joaquín Ruales (jruales)
force-pushed
the
jruales/revert-canvas-workspace-trust
branch
from
October 19, 2026 22:26
f98fbfa to
58df6fc
Compare
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b480cb8d-9ac1-41ba-a19a-2687b95e08d8
Joaquín Ruales (jruales)
marked this pull request as ready for review
October 20, 2026 04:34
Joaquín Ruales (jruales)
requested a review
from Ulugbek Abdullaev (ulugbekna)
October 20, 2026 04:45
Joaquín Ruales (jruales)
enabled auto-merge
October 20, 2026 04:55
Ulugbek Abdullaev (ulugbekna)
approved these changes
Oct 20, 2026
Joaquín Ruales (jruales)
deleted the
jruales/revert-canvas-workspace-trust
branch
October 20, 2026 06:22
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.

Reverts #342372 in full, restoring the project canvas extension launch and workspace trust behavior that existed before that change.
Validation:
npm run build-fast -- --client-only— passednpm run typecheck-client— passed./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts --run src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts --run src/vs/workbench/services/workspaces/test/common/workspaceTrust.test.ts --run src/vs/platform/agentHost/test/node/agentHostSessionStateOwnershipGuard.test.ts— 1,158 passing, 1 pending./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/providerIntegration/copilotMockLlm.integrationTest.ts— 7 passing🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).