Skip to content

Avoid infinite loop in syncing agent host config#314391

Merged
roblourens merged 2 commits into
mainfrom
roblou/exclusive-marlin
May 5, 2026
Merged

Avoid infinite loop in syncing agent host config#314391
roblourens merged 2 commits into
mainfrom
roblou/exclusive-marlin

Conversation

@roblourens
Copy link
Copy Markdown
Member

Fix #314385

Copilot AI review requested due to automatic review settings May 5, 2026 14:43
@roblourens roblourens enabled auto-merge (squash) May 5, 2026 14:43
@roblourens roblourens self-assigned this May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Screenshot Changes

Base: 2493bf0b Current: e92b2bf7

Changed (9)

chat/input/chatInput/WithArtifacts/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/WithArtifactsAndFileChanges/Light
Before After
before after
chat/input/chatInput/Full/Light
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Dark
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Light
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

This PR targets issue #314385 where enabling chat.agentHost.enabled can lead to VS Code becoming unresponsive, likely due to a feedback loop while syncing agent host config from the workbench.

Changes:

  • Disables the rootState.onDidChange listener that triggers _pushDefaultShell() when the agent host root state changes.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.ts Comments out the root-state-change retry hook for pushing the default shell into agent host root config.

Copilot's findings

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

@roblourens roblourens merged commit 0aed0a9 into main May 5, 2026
26 checks passed
@roblourens roblourens deleted the roblou/exclusive-marlin branch May 5, 2026 15:09
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 5, 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.

VS Code 1.120.0-insider is unresponsive when chat.agentHost.enabled is enabled

3 participants