Comment by ErikBjare

1 month ago

For what it's worth, gptme will refuse non-unique matches (and ask the LLM to try again). I thought Aider did too (easy win after all), but apparently not.

For me this happened at the end of functions in vanilla JS; I used to work around it by putting "// end of foo()" comments after the closing brace. However, Aider has multiple modes for LLM editing, including diff, udiff, and whole file; you can switch between those when needed.