Skip to content

Agents web: Fix for terminals#311089

Merged
osortega merged 3 commits intomainfrom
osortega/encouraging-quail
Apr 17, 2026
Merged

Agents web: Fix for terminals#311089
osortega merged 3 commits intomainfrom
osortega/encouraging-quail

Conversation

@osortega
Copy link
Copy Markdown
Contributor

Co-authored-by: Copilot copilot@github.com

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 17, 2026 20:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

Screenshot Changes

Base: 6579de67 Current: 98a12cc9

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

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

Fixes working-directory handling for agent-host terminals in the Agents/Sessions web experience, aiming to avoid incorrect/duplicate terminal creation and to provide a sensible default cwd when the terminal service can’t infer one.

Changes:

  • Normalize contributed-profile cwd values and allow subclasses to provide a context-aware default cwd for agent-host terminals.
  • Prevent Sessions window from creating a duplicate “home” terminal for agent-host sessions.
  • Resolve agent-host terminal cwd to a usable filesystem path server-side and fall back when the directory is inaccessible.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.ts Adds cwd normalization and a subclass hook for supplying a default cwd when terminal service doesn’t provide one.
src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.ts Skips local “home” terminal creation for agent-host sessions to prevent duplicates.
src/vs/sessions/contrib/remoteAgentHost/browser/remoteAgentHostTerminal.contribution.ts Derives a default cwd from the active session’s worktree for the selected remote agent host.
src/vs/platform/agentHost/node/agentHostTerminalManager.ts Converts protocol cwd into a filesystem path and adds a fallback if the directory is missing/inaccessible.

Copilot's findings

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

Comment thread src/vs/platform/agentHost/node/agentHostTerminalManager.ts Outdated
osortega and others added 2 commits April 17, 2026 13:43
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@osortega osortega marked this pull request as ready for review April 17, 2026 20:53
@osortega osortega enabled auto-merge (squash) April 17, 2026 20:56
@osortega osortega merged commit a947515 into main Apr 17, 2026
26 checks passed
@osortega osortega deleted the osortega/encouraging-quail branch April 17, 2026 21:17
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 17, 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