fix: cover headless first-run setup flow

This commit is contained in:
teknium1 2026-03-14 02:37:29 -07:00
parent 4aa94ae7cc
commit 9492f42aa7
4 changed files with 119 additions and 37 deletions

View file

@ -478,6 +478,15 @@ def cmd_chat(args):
print()
print(" Run: hermes setup")
print()
from hermes_cli.setup import is_interactive_stdin, print_noninteractive_setup_guidance
if not is_interactive_stdin():
print_noninteractive_setup_guidance(
"No interactive TTY detected for the first-run setup prompt."
)
sys.exit(1)
try:
reply = input("Run setup now? [Y/n] ").strip().lower()
except (EOFError, KeyboardInterrupt):