From aaf2e9e95f6f1985310bc156407efac6c316c4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 8 Jan 2025 17:57:26 +0100 Subject: [PATCH] fix: dont store invalid commands in log --- gptme/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gptme/commands.py b/gptme/commands.py index bd55f8c5..6ec07473 100644 --- a/gptme/commands.py +++ b/gptme/commands.py @@ -173,6 +173,7 @@ def handle_cmd( manager.write() help() else: + manager.undo(1, quiet=True) print("Unknown command")