Skip to content

Conversation

@jrieken
Copy link
Member

@jrieken jrieken commented Jan 9, 2026

Copilot AI review requested due to automatic review settings January 9, 2026 16:02
@jrieken jrieken enabled auto-merge January 9, 2026 16:02
@jrieken jrieken self-assigned this Jan 9, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 9, 2026
Copy link
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 fixes issue #286768 by preventing the inline chat system from invoking the exit tool when a request has not been successful. The key change is to only call the exit tool bailout mechanism when the response type is Success and no edits were emitted.

Key Changes

  • Added error handling checks to prevent exit tool invocation on unsuccessful requests
  • Added conditional checks for ChatFetchResponseType.Success before determining needsExitTool
  • Added warning logging for debugging bailout scenarios

@jrieken jrieken added this pull request to the merge queue Jan 9, 2026
Merged via the queue into main with commit e7b784e Jan 9, 2026
25 checks passed
@jrieken jrieken deleted the joh/allied-mackerel branch January 9, 2026 16:31
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.

Inline chat shows "exit dialog" when dealing with errors

3 participants