fix: cover headless first-run setup flow
This commit is contained in:
parent
4aa94ae7cc
commit
9492f42aa7
4 changed files with 119 additions and 37 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue