Skip to content

[cherry-pick] Changes to include workspaceStorage directory for allowRead#314287

Merged
dileepyavan merged 1 commit intomicrosoft:release/1.119from
dileepyavan:DileepY/313022_1-release-1.119
May 5, 2026
Merged

[cherry-pick] Changes to include workspaceStorage directory for allowRead#314287
dileepyavan merged 1 commit intomicrosoft:release/1.119from
dileepyavan:DileepY/313022_1-release-1.119

Conversation

@dileepyavan
Copy link
Copy Markdown
Member

Cherry-picks b32a129600d to release/1.119.

Validation:

  • ./scripts/test.sh --run src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts --grep "should reallow reads from workspace storage|should deny home reads while reallowing writable paths for reads|should only add command-specific allowRead paths for the current command keywords" → 4 passing

Copilot AI review requested due to automatic review settings May 4, 2026 23:36
@dileepyavan dileepyavan enabled auto-merge (squash) May 4, 2026 23:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Cherry-picks a fix onto release/1.119 to ensure the terminal sandbox configuration continues to allow read access to VS Code’s per-workspace storage directory, even when user home reads are broadly denied (a common hardening setup).

Changes:

  • Extend sandbox filesystem.allowRead generation to always include the current workspace’s workspaceStorage directory.
  • Add a regression test asserting workspaceStorageHome/<workspaceId> is present in allowRead while home remains in denyRead.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts Adds workspace-storage-derived path(s) into computed allowRead so workspace storage remains readable under home-deny configurations.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts Adds coverage to verify workspace storage is re-allowed for reads when home is denied.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@dileepyavan dileepyavan merged commit 1e416d7 into microsoft:release/1.119 May 5, 2026
29 of 30 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone May 5, 2026
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