Skip to content

Changes to include workspaceStorage directory for allowRead#313820

Open
dileepyavan wants to merge 1 commit intomainfrom
DileepY/313022_1
Open

Changes to include workspaceStorage directory for allowRead#313820
dileepyavan wants to merge 1 commit intomainfrom
DileepY/313022_1

Conversation

@dileepyavan
Copy link
Copy Markdown
Member

fixes #313022

Copilot AI review requested due to automatic review settings May 1, 2026 23:24
@dileepyavan dileepyavan enabled auto-merge (squash) May 1, 2026 23:25
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

This PR addresses #313022 by ensuring the terminal sandbox configuration explicitly re-allows read access to the current workspace’s workspaceStorage directory, even when the user home directory is broadly denied for reads. This helps keep workspace-scoped temporary/state files (e.g. content.json) accessible within the sandboxed execution model.

Changes:

  • Extend sandbox config generation to include the workspace’s storage directory in filesystem.allowRead.
  • Add a browser test validating that workspace storage under the user home is denied generally but re-allowed for the active workspace.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts Adds workspaceStorageHome/<workspaceId> into generated allowRead paths.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts Adds coverage to ensure workspace storage is re-allowed even when home is denied.

Copilot's findings

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

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.

Temporary content.json outside sandbox

3 participants