aider icon indicating copy to clipboard operation
aider copied to clipboard

fix: correct phrasing in user prompts for editing files

Open ei-grad opened this issue 10 months ago • 4 comments

This fixes an issue where the model sends long corrections (for other files) before requesting the file, causing the same corrections to be sent multiple times or leading to their loss.

ei-grad avatar Apr 18 '25 01:04 ei-grad

Thanks for your interest in aider and for taking the time to make this PR.

How have you concluded that this prompting change has the desired effect?

paul-gauthier avatar Apr 18 '25 02:04 paul-gauthier

Thanks for your interest in aider and for taking the time to make this PR.

How have you concluded that this prompting change has the desired effect?

  • Asked Gemini 2.5 Pro why it proposed edits to files that were not added; it pointed to these locations.
  • Reviewed the output of aider --show-prompts to verify that the corrected prompt versions are actually being used.
  • I haven’t noticed any recurrence of this problematic behavior since applying these changes.

ei-grad avatar Apr 22 '25 09:04 ei-grad

leading to their loss

This was probably related to other bugs (already fixed).

ei-grad avatar Apr 22 '25 09:04 ei-grad

Hm. Probably this is not a proper fix for my problem.

ei-grad avatar Apr 22 '25 15:04 ei-grad