Open 5ocworkshop opened 2 hours ago
I'm realizing that perhaps the better question would be "is it possible to clean up the output from the AI that gets displayed in the chat window so it doesn't have this hidden white space when copied to VSCode's text editor?". I notice if I have Aider write it out to a file there isn't hidden white space.
As another reference, simply copying LLM responses and including them in the message also appears to have the same issue, as seen in the screenshot by the appearance of the lines between the list items when pasted back to aider in the same terminal:
Issue
I often ask the AI to make a list of the work it is going to do and then cut and paste that from the terminal to a window in VSCode and then often send part or all of it back to the AI to ask it to confirm it performed all the tasks.
I noticed that this often results in a lot of extra whitespace as you can see in the image:
I'm curious as to whether all that white space is being send in to the AI and consuming tokens (my suspicion is yes) and I'm wondering if there is a way we could have an option to strip excessive white space before submitting it to avoid situations like that?
Version and model info
Aider 0.60.1