Skip to content

sessions: preserve remote tags in recent folders - #341654

Merged
roblourens merged 1 commit into
mainfrom
roblou/agents/fix-vscode-issue-338415
Oct 15, 2026
Merged

roblourens merged 1 commit into
mainfrom
roblou/agents/fix-vscode-issue-338415

Conversation

@roblourens

@roblourens roblourens commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Fixes #338415.

Preserve the Agents window's remote-aware workspace label when opening a session in the editor, so Windows recent-folder entries retain the remote host tag. Local folders and unsupported-remote fallback behavior are unchanged.

Refactor openSessionInVSCode to resolve its services from a fresh accessor supplied by IInstantiationService.invokeFunction. Tests use the same invocation path and cover SSH, tunnels, WSL, Dev Containers, and Windows multi-folder labels.

Validation

  • npm run typecheck-client — passed.
  • npm run build-fast -- --client-only — passed.
  • ./scripts/test.sh --run src/vs/sessions/test/electron-browser/vscodeActions.test.ts --run src/vs/sessions/test/browser/resolveRemoteAuthority.test.ts --reporter dot — passed, 44 tests.
  • npm run eslint -- src/vs/sessions/electron-browser/actions/vscodeActions.ts src/vs/sessions/test/electron-browser/vscodeActions.test.ts — passed.
  • git diff --check — passed.

Current-head CI passed: Code OSS, CodeQL, Component Fixtures, Monaco Editor checks, Telemetry, and chat-lib tests. Windows unit tests passed after retrying an unrelated saved-chat continuation assertion; Linux smoke tests passed after two suite-level timeouts. No code changes were needed for those retries. Copilot review reported no findings.

The Windows taskbar UI was not manually exercised on macOS. To verify on Windows, open a remote tunnel session in the Agents window, choose Open in Editor, close the editor window, and confirm the taskbar recent-folder entry includes the remote host tag.

(Written by Copilot)

Fixes #338415 by passing remote-aware folder labels when opening a session in the editor. Resolve helper services through a fresh accessor and cover remote labels and multi-folder tunnel handoffs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 23:57
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 47f2192f Current: 1ec67ef9

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/PluginMarketplaceMigrationDisabled/Light
Before After
before after

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.

🟢 Approval recommended

The focused change preserves existing fallback behavior, has targeted regression coverage, and has no identified blockers.

0 open findings

What changed in this PR

Preserves remote host tags when Agents window sessions are opened in the editor, addressing missing tags in Windows recent folders.

Changes:

  • Passes remote-aware workspace labels when opening folders.
  • Resolves services through a fresh accessor.
  • Expands regression coverage for supported remotes and Windows multi-folder labels.

Windows taskbar behavior was not manually verified.

File Description
src/​vs/​sessions/​test/​electron-browser/​vscodeActions.test.ts Tests remote labels and updates service invocation.
src/​vs/​sessions/​electron-browser/​actions/​vscodeActions.ts Preserves remote labels during editor handoff.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roblourens
roblourens marked this pull request as ready for review October 15, 2026 16:16
@roblourens
roblourens enabled auto-merge (squash) October 15, 2026 16:16
@roblourens
roblourens merged commit 0fc5600 into main Oct 15, 2026
75 of 78 checks passed
@roblourens
roblourens deleted the roblou/agents/fix-vscode-issue-338415 branch October 15, 2026 16:55
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 15, 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.

remote AH entries in recent folders do not show their remote

3 participants