DavidSouther / ailly

Your AI Writing Ally
Other
10 stars 6 forks source link

Ailly --edit gives a confusing response when the context is overloaded. #86

Closed beqqrry-aws closed 5 months ago

beqqrry-aws commented 5 months ago

When using ailly --edit, if there is too much context (such as a deep directory tree or large, compressed files), --edit will try and fail to provide new content, but will still offer the user an option to Continue? (y/N). The output will show all the suggested lines to remove, prepended with - characters, but there will be no suggestions to add with the + character. This might be confusing to an end user, and potentially destroy work if they unknowingly choose y as lines will be removed, but none added.

When encountering this sort of error, ailly --edit should gracefully error out and not provide an option to remove lines when it has nothing to replace them with.