Skip to content

Conversation

@DonJayamanne
Copy link
Collaborator

@DonJayamanne DonJayamanne self-assigned this Jan 29, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review January 29, 2026 23:03
Copilot AI review requested due to automatic review settings January 29, 2026 23:03
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 29, 2026
Copy link
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 change tightens folder trust handling for Copilot CLI background agents so they only operate in trusted locations, addressing the linked VS Code issue about background agent folder trust.

Changes:

  • Re-validates resource trust when using a cached repository in an empty workspace, updating the cache to “untrusted” if the user declines trust.
  • Adds an explicit trust check for the resolved working directory before proceeding with worktree creation or migration, cancelling the operation if the folder is not trusted and warning the user.

@DonJayamanne DonJayamanne added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit 40b63c9 Jan 29, 2026
25 checks passed
@DonJayamanne DonJayamanne deleted the don/adjacent-goldfish branch January 29, 2026 23:33
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.

Running in an untrusted folder seems to break

3 participants