Fix auto-start launcher: use hermes chat --tui -q

Top-level hermes has no -q flag, so the kickoff string was parsed as
a subcommand and failed. Query must go on hermes chat.
This commit is contained in:
domfelipe 2026-08-03 00:15:51 -03:00
parent 3b98cb7253
commit 29c3fa703b
4 changed files with 12 additions and 11 deletions

View file

@ -79,10 +79,10 @@ Preferred launch (agent auto-starts):
```bash
hermes-client-onboarding
# or:
hermes --tui -s hermes-client-onboarding -q "Inicie AGORA o onboarding…"
hermes chat --tui -s hermes-client-onboarding -q "Inicie AGORA o onboarding…"
```
Plain `hermes chat -s hermes-client-onboarding` without a kickoff waits for user input — avoid that for demos.
Plain `hermes chat -s hermes-client-onboarding` without `-q` waits for user input — avoid that for demos.
### Phase 1 — Context & Goals

View file

@ -13,9 +13,10 @@ if ! command -v hermes >/dev/null 2>&1; then
exit 1
fi
# TUI: -q becomes HERMES_TUI_QUERY — first turn auto-submits, session stays interactive.
# Must use `hermes chat` subcommand: -q is not a top-level flag.
# With --tui, -q becomes HERMES_TUI_QUERY — first turn auto-submits, session stays interactive.
if [[ -t 0 && -t 1 ]]; then
exec hermes --tui -s "$SKILL_NAME" -q "$KICKOFF" "$@"
exec hermes chat --tui -s "$SKILL_NAME" -q "$KICKOFF" "$@"
fi
# Non-TTY fallback (CI/scripts): one-shot only