Skip to content

fix #307276#307294

Merged
rebornix merged 2 commits intomainfrom
rebornix/powerful-basilisk
Apr 2, 2026
Merged

fix #307276#307294
rebornix merged 2 commits intomainfrom
rebornix/powerful-basilisk

Conversation

@rebornix
Copy link
Copy Markdown
Member

@rebornix rebornix commented Apr 2, 2026

It should fallback to folder and "allow" the folder instead of no-op

cc @connor4312

Copilot AI review requested due to automatic review settings April 2, 2026 00:00
@rebornix rebornix self-assigned this Apr 2, 2026
justschen
justschen previously approved these changes Apr 2, 2026
@rebornix rebornix marked this pull request as ready for review April 2, 2026 00:04
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 #307276 by changing the “Allow repository in this session” pre-confirm action for external paths so it no longer no-ops when a git root cannot be determined, instead falling back to allowing the containing folder for the current chat session.

Changes:

  • Update repo-allow action to fall back to allowing the containing folder when no git root is found.
  • Add unit tests covering session allowlisting behavior (folder/repo), git-root caching, and the fallback behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/contrib/chat/common/tools/builtinTools/chatExternalPathConfirmation.ts Changes repo-allow selection to add folderUri when git root lookup fails, instead of returning false/no-op.
src/vs/workbench/contrib/chat/test/common/tools/builtinTools/chatExternalPathConfirmation.test.ts Adds test coverage for session allowlisting, git-root caching, and the git-root-not-found fallback.

connor4312
connor4312 previously approved these changes Apr 2, 2026
@rebornix rebornix dismissed stale reviews from connor4312 and justschen via 11dad15 April 2, 2026 04:51
@rebornix rebornix enabled auto-merge (squash) April 2, 2026 05:09
@rebornix rebornix merged commit b2099b8 into main Apr 2, 2026
19 checks passed
@rebornix rebornix deleted the rebornix/powerful-basilisk branch April 2, 2026 06:19
@vs-code-engineering vs-code-engineering bot added this to the 1.115.0 milestone Apr 2, 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.

4 participants