Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

check for authorise 'y' without trailing space

PierreBastianidbb78b636f8c
diff --git a/scripts/main.py b/scripts/main.py
index d84e150850..87a8f4faba 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -348,7 +348,7 @@ while True:
flush=True)
while True:
console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL)
- if console_input.lower() == "y":
+ if console_input.lower().rstrip() == "y":
user_input = "GENERATE NEXT COMMAND JSON"
break
elif console_input.lower().startswith("y -"):