Skip to content

Improve experience for invalid generateRebase responses #4395

@d13

Description

@d13

Missing or incorrect hunks

On rare occasion, the AI provider responds with commits that:

  • don't include all the hunks we sent
  • include hunk numbers we didn't send
  • use the same hunk twice

Our current short-term solution is to provider an error message to the user that explains the AI response was missing changes and to retry again.

Ideally, a better retry solution would be to continue the conversation with another turn, telling the provider that it missed some changes, provide the bad response they sent and ask it to fix it.

A follow-up: #4429

Verification steps

  • don't pick the best model because it often succeeds from the first time (pick ollama or an old model of another provider)
  • try generating: the action should fail with less frequency than before the fix

Metadata

Metadata

Assignees

Labels

area-aiIssues or features related to AIpending-releaseResolved but not yet released to the stable editionverified ✔Verified

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions