Skip to content

fix(udiff): normalize paths for every file header - #5562

Open
KXHXK wants to merge 1 commit into
Aider-AI:mainfrom
KXHXK:fix/multi-file-udiff-prefixes
Open

fix(udiff): normalize paths for every file header#5562
KXHXK wants to merge 1 commit into
Aider-AI:mainfrom
KXHXK:fix/multi-file-udiff-prefixes

Conversation

@KXHXK

@KXHXK KXHXK commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • normalize standard Git a/ and b/ prefixes for every file header pair in a fenced unified diff
  • reuse the same path handling for the initial and subsequent files
  • add regression coverage for a two-file diff

Fixes #5560

Test plan

  • python -m pytest tests/basic/test_udiff.py -q
  • python -m flake8 aider/coders/udiff_coder.py tests/basic/test_udiff.py
  • git diff --check

@CLAassistant

CLAassistant commented Aug 12, 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.

BUG: find_diffs retains b/ prefixes after the first file in a multi-file udiff

2 participants