Skip to content

fix(coder): apply edits before reflecting file mentions (#5706) - #5709

Open
FOWEPJF255 wants to merge 1 commit into
Aider-AI:mainfrom
FOWEPJF255:fix/apply-before-file-mention-reflect-5706
Open

FOWEPJF255 wants to merge 1 commit into
Aider-AI:mainfrom
FOWEPJF255:fix/apply-before-file-mention-reflect-5706

Conversation

@FOWEPJF255

Copy link
Copy Markdown

Summary

  • Apply model edits before check_for_file_mentions reflection so a valid whole/editor-whole reply is not discarded when it also incidentally names other repo paths (especially under --yes-always).
  • Add a regression test that asserts apply_updates runs before file-mention reflection.

Fixes #5706

Test plan

  • python -m pytest tests/basic/test_coder.py::TestCoder::test_apply_updates_before_file_mention_reflect -q

Incidental path matches in a valid whole-file reply were short-circuiting
apply_updates under --yes-always. Apply first, then reflect.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants