From 491fb14eaa01edb0f9a233ed91704c63f137baf9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 26 Jan 2025 18:45:49 -0800 Subject: [PATCH] feat: append keyboard interrupt message to last user message --- aider/coders/base_coder.py | 1 + 1 file changed, 1 insertion(+) 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."),