mirror of
https://github.com/domfelipe/hermes-client-onboarding.git
synced 2026-08-07 13:56:42 +00:00
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:
parent
3b98cb7253
commit
29c3fa703b
4 changed files with 12 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue