Skip to content

Detect unified diffs in whole-file mode - #5522

Open
adbcodes wants to merge 1 commit into
Aider-AI:mainfrom
adbcodes:fix/wholefile-unified-diff-error
Open

Detect unified diffs in whole-file mode#5522
adbcodes wants to merge 1 commit into
Aider-AI:mainfrom
adbcodes:fix/wholefile-unified-diff-error

Conversation

@adbcodes

@adbcodes adbcodes commented Aug 4, 2026

Copy link
Copy Markdown

Fixes #5486

Summary

  • detect unified-diff-shaped responses when whole-file parsing produces no edits
  • report the mismatch through Aider's existing malformed-response path
  • avoid automatically applying an unexpected edit format
  • provide actionable retry and configuration guidance
  • add regression and no-change boundary tests

Testing

  • pytest tests/basic/test_wholefile.py -q
  • pytest tests/basic/test_coder.py -q
  • pre-commit run --all-files

@CLAassistant

CLAassistant commented Aug 4, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Unlisted-model whole edit-format auto-selection silently discards valid diff-style output (no error, no tracked changes)

2 participants