Skip to content

chat: preserve Agent Host sessions across Remote-SSH reloads#327425

Open
NathanielMcVicar wants to merge 2 commits into
microsoft:mainfrom
NathanielMcVicar:agenthost-working-dir
Open

chat: preserve Agent Host sessions across Remote-SSH reloads#327425
NathanielMcVicar wants to merge 2 commits into
microsoft:mainfrom
NathanielMcVicar:agenthost-working-dir

Conversation

@NathanielMcVicar

@NathanielMcVicar NathanielMcVicar commented Jul 25, 2026

Copy link
Copy Markdown

Fixes #326630

Agent Host working directories can use wrapped file URIs under Remote SSH. These were erroneously filtered against the vscode-remote workspace after a reload. Normalize all of these URIs to the local workspace before filtering and add a simple regression test.

Signed-off-by: Nathaniel McVicar <Nathaniel.McVicar@microsoft.com>
Copilot AI review requested due to automatic review settings July 25, 2026 00:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes Remote-SSH Agent Host sessions being incorrectly filtered after reload by comparing their unwrapped working-directory URIs.

Changes:

  • Unwrap Agent Host working-directory URIs before workspace matching.
  • Add a Remote-SSH regression test.

Reviewed changes

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

File Description
agentHostSessionListStore.ts Unwraps working-directory URIs before filtering.
agentHostChatContribution.test.ts Verifies remote sessions remain listed after refresh.

@NathanielMcVicar

Copy link
Copy Markdown
Author

@TylerLeonhardt please take a look, I guess I don't have permission to assign PRs directly. Thanks!

Signed-off-by: Nathaniel McVicar <Nathaniel.McVicar@microsoft.com>
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.

Copilot Chat Sessions list missing Claude Agent SDK sessions after updating to latest release.

3 participants