Skip to content

nes: fix: don't error if server response contained no choices#4439

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/youthful-ermine
Mar 17, 2026
Merged

nes: fix: don't error if server response contained no choices#4439
ulugbekna merged 1 commit intomainfrom
ulugbekna/youthful-ermine

Conversation

@ulugbekna
Copy link
Contributor

diff-patch models return no choices if they have no edits

Copilot AI review requested due to automatic review settings March 17, 2026 10:02
@ulugbekna ulugbekna enabled auto-merge March 17, 2026 10:02
@ulugbekna ulugbekna self-assigned this Mar 17, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 17, 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

Adjusts Next Edit Suggestions (NES) error handling in XtabProvider so that “diff-patch” models returning a response with no choices (i.e., no edits) is treated as “no suggestions” rather than surfacing as a fetch failure.

Changes:

  • Detects ChatFetchResponseType.Unknown responses with reason containing "Response contained no choices."
  • Returns NoNextEditReason.NoSuggestions for that case instead of mapping to a fetch failure

chrmarti
chrmarti previously approved these changes Mar 17, 2026
@ulugbekna ulugbekna disabled auto-merge March 17, 2026 10:11
diff-patch models return no choices if they have no edits
@ulugbekna ulugbekna added this pull request to the merge queue Mar 17, 2026
Merged via the queue into main with commit 84aab15 Mar 17, 2026
19 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/youthful-ermine branch March 17, 2026 11:26
ulugbekna added a commit that referenced this pull request Mar 17, 2026
diff-patch models return no choices if they have no edits
ulugbekna added a commit that referenced this pull request Mar 17, 2026
diff-patch models return no choices if they have no edits
ulugbekna added a commit that referenced this pull request Mar 17, 2026
diff-patch models return no choices if they have no edits
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