feat: add confirmation prompt when token limits are exceeded

This commit is contained in:
Paul Gauthier (aider) 2025-01-26 18:47:39 -08:00
parent 3d2700d29d
commit 58d763f971

View file

@ -1244,7 +1244,8 @@ class Coder:
self.io.tool_error("- Use /drop to remove unneeded files from the chat")
self.io.tool_error("- Use /clear to clear the chat history")
self.io.tool_error("- Break your code into smaller files")
return False
if not self.io.confirm_ask("Try to proceed anyway?", default="n"):
return False
return True
def send_message(self, inp):