diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index a8fb3250e..3982c5d8e 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1367,6 +1367,7 @@ class Coder: interrupted = True if interrupted: + # check if the last messages was role==user, append the ^C Key.. to it if so. ai! self.cur_messages += [ dict(role="user", content="^C KeyboardInterrupt"), dict(role="assistant", content="I see that you interrupted my previous reply."),