Skip to content

Revert "Canvases: Gate project canvas extensions on workspace trust" - #342684

Merged
Joaquín Ruales (jruales) merged 2 commits into
mainfrom
jruales/revert-canvas-workspace-trust
Oct 20, 2026
Merged

Joaquín Ruales (jruales) merged 2 commits into
mainfrom
jruales/revert-canvas-workspace-trust

Conversation

@jruales

Copy link
Copy Markdown
Contributor

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 — passed
  • npm run typecheck-client — passed
  • changed-TypeScript ESLint — 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).

Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:51

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.

🔵 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

@jruales
Joaquín Ruales (jruales) force-pushed the jruales/revert-canvas-workspace-trust branch from f98fbfa to 58df6fc Compare October 19, 2026 22:26
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b480cb8d-9ac1-41ba-a19a-2687b95e08d8
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.

3 participants