change: always run setup on no-config run

there's instructions on how to exit & do it manually, no point in asking
This commit is contained in:
Ari Lotter 2026-04-11 20:45:09 -04:00
parent 6fdbf2f2d7
commit bdc9b07c9d

View file

@ -1085,9 +1085,6 @@ def cmd_chat(args):
print(
"It looks like Hermes isn't configured yet -- no API keys or providers found."
)
print()
print(" Run: hermes setup")
print()
from hermes_cli.setup import (
is_interactive_stdin,
@ -1100,16 +1097,8 @@ def cmd_chat(args):
)
sys.exit(1)
try:
reply = input("Run setup now? [Y/n] ").strip().lower()
except (EOFError, KeyboardInterrupt):
reply = "n"
if reply in ("", "y", "yes"):
cmd_setup(args)
return
print()
print("You can run 'hermes setup' at any time to configure.")
sys.exit(1)
cmd_setup(args)
return
# Start update check in background (runs while other init happens)
try: