From 877dda2f3d4bbb36da93e1d55e51bfc5fc7a24a5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 22 Jan 2024 13:05:38 -0800 Subject: [PATCH] On /undo, ask GPT to wait before retrying the changes #450 --- aider/prompts.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/prompts.py b/aider/prompts.py index 79915d519..f1fa7a2d4 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -11,7 +11,11 @@ Reply with JUST the commit message, without quotes, comments, questions, etc! """ # COMMANDS -undo_command_reply = "I did `git reset --hard HEAD~1` to discard the last edits." +undo_command_reply = ( + "I did `git reset --hard HEAD~1` to discard the last edits. Please wait for further" + " instructions before attempting that change again. Feel free to ask relevant questions about" + " why the changes were reverted." +) added_files = "I added these *read-write* files: {fnames}"