mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
feat: append keyboard interrupt message to last user message
This commit is contained in:
parent
f4d7fe8850
commit
491fb14eaa
1 changed files with 1 additions and 0 deletions
|
@ -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."),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue