diff --git a/aider/commands.py b/aider/commands.py index 622d1fbdf..e3f089f4d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -443,10 +443,11 @@ class Commands: return text = v.record_and_transcribe() - self.io.add_to_file_history(text) - print() - self.io.user_input(text, log_only=False) - print() + if text: + self.io.add_to_file_history(text) + print() + self.io.user_input(text, log_only=False) + print() return text