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

@ -219,11 +219,11 @@ launch_hermes_onboarding() {
exec "${HOME}/.local/bin/hermes-client-onboarding"
fi
fi
# Fallback without launcher binary
# Fallback without launcher binary (-q only works on `hermes chat`)
if [[ -r /dev/tty ]]; then
exec hermes --tui -s "$SKILL_NAME" -q "$KICKOFF_MSG" </dev/tty
exec hermes chat --tui -s "$SKILL_NAME" -q "$KICKOFF_MSG" </dev/tty
else
exec hermes --tui -s "$SKILL_NAME" -q "$KICKOFF_MSG"
exec hermes chat --tui -s "$SKILL_NAME" -q "$KICKOFF_MSG"
fi
}
@ -233,7 +233,7 @@ launch_conductor() {
skip)
log "Skill pronta. Rode depois (agente fala primeiro):"
echo " hermes-client-onboarding"
echo " # ou: hermes --tui -s ${SKILL_NAME} -q \"${KICKOFF_MSG}\""
echo " # ou: hermes chat --tui -s ${SKILL_NAME} -q \"\""
need_cmd codex && echo " codex \"${KICKOFF_MSG}\""
return 0
;;
@ -266,7 +266,7 @@ main() {
if [[ "$NO_LAUNCH" -eq 1 ]]; then
log "Done (--no-launch). Start with (agent speaks first):"
echo " hermes-client-onboarding"
echo " # ou: hermes --tui -s ${SKILL_NAME} -q \"…\""
echo " # ou: hermes chat --tui -s ${SKILL_NAME} -q \"…\""
exit 0
fi