Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling of large command outputs #2517

Closed
tom-doerr opened this issue Dec 3, 2024 · 4 comments
Closed

Better handling of large command outputs #2517

tom-doerr opened this issue Dec 3, 2024 · 4 comments
Labels
enhancement New feature or request fixed

Comments

@tom-doerr
Copy link

It would be really helpful to either see how much is about to be added or have the option to undo the last add if it will cause the context window to be exceeded and I'm forced to clear the chat and loose all the relevant chat history.
image

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Sorry, didn't it show you all the output before asking you if you want to add it?

@tom-doerr
Copy link
Author

Well it's multiple markdown files printed at the same time. I want to have the content in the chat because it's relevant to the task I want to accomplish with Aider. I could scroll though the output to see how much it is, but that's inconvenient and also just results in me guessing if it fit's in the 128k context. If I had number of lines or even better number of characters, estimating tokens would be much easier. Not sure if feasible, but having a bar that shows how much of the context window is filled until now, how much the current output will add and the actual token numbers with percentages would of course be great.

@github-actions github-actions bot added the question Further information is requested label Dec 4, 2024
@paul-gauthier paul-gauthier added enhancement New feature or request and removed question Further information is requested labels Dec 4, 2024
@paul-gauthier
Copy link
Collaborator

Aider now asks you:

Add 6.9k tokens of command output to the chat? (Y)es/(N)o [Yes]:

The change is available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you.

Copy link

I'm closing this enhancement request since it has been marked as 'fixed' for over 3 weeks. The requested feature should now be available in recent versions of aider.

If you find that this enhancement is still needed, please feel free to reopen this issue or create a new one.

Note: A bot script made these updates to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

2 participants