Skip to content

Skip passing folder URI to agents window for non-file schemes#314607

Merged
sandy081 merged 1 commit into
mainfrom
sandy081/skip-remote-folder-agents-window
May 6, 2026
Merged

Skip passing folder URI to agents window for non-file schemes#314607
sandy081 merged 1 commit into
mainfrom
sandy081/skip-remote-folder-agents-window

Conversation

@sandy081
Copy link
Copy Markdown
Member

@sandy081 sandy081 commented May 6, 2026

Follow-up to #314602. Only pass file:// folder URIs to the agents window — remote workspace folders (vscode-remote://) can't be resolved by sessions providers.

Remote workspace folders (vscode-remote://) cannot be resolved by
sessions providers, so only pass file:// URIs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 6, 2026 01:13
@sandy081 sandy081 enabled auto-merge (squash) May 6, 2026 01:13
@sandy081 sandy081 self-assigned this May 6, 2026
@sandy081 sandy081 added this to the 1.120.0 milestone May 6, 2026
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 updates the “Open in Agents Window” flow in the workbench chat contribution to only forward a workspace folder URI when it uses the local file:// scheme, avoiding passing remote (vscode-remote://) folders that the agents window’s sessions providers cannot resolve.

Changes:

  • Filter the workspace folder URI so only file-scheme folders are passed into openAgentsWindow.
  • Add a Schemas import to compare schemes using the shared constant.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/electron-browser/agentSessions/agentSessionsActions.ts Only pass a folder URI to the agents window when the workspace folder uses the file scheme.

Copilot's findings

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Screenshot Changes

Base: 5d6fc554 Current: a24da565

Changed (13)

chat/input/chatInput/WithArtifacts/Dark
Before After
before after
chat/input/chatInput/WithArtifacts/Light
Before After
before after
chat/input/chatInput/WithFileChanges/Dark
Before After
before after
chat/input/chatInput/WithFileChanges/Light
Before After
before after
chat/input/chatInput/WithTodos/Dark
Before After
before after
chat/input/chatInput/WithTodos/Light
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Light
Before After
before after
chat/input/chatInput/WithArtifactsAndFileChanges/Light
Before After
before after
chat/input/chatInput/Full/Light
Before After
before after
chat/widget/chatWidget/SimpleQA/Light
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Dark
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Light
Before After
before after

@sandy081 sandy081 merged commit 724775b into main May 6, 2026
30 checks passed
@sandy081 sandy081 deleted the sandy081/skip-remote-folder-agents-window branch May 6, 2026 01:30
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