Keep prompted Hermes sessions interactive

Hermes oneshot deliberately exits after answering, which closes the agent terminal. Seed the TUI chat session instead, keep inherited flags after the subcommand for older Hermes parsers, and bind the query as one argument so dash-prefixed prompts remain data.

Co-Authored-By: Codex XHigh <noreply@openai.com>
This commit is contained in:
Spencer BullandCodex XHigh committed 2026-08-27 21:31:17 -05:00
1 parent fdb3755c7d
commit b609ae2355
2 files changed
+4 -3

No files matched your search

+2 -3
View File
@@ -87,10 +87,9 @@ codex)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
hermes)
# Hermes has no "start interactive, seeded with this prompt" mode. --oneshot
# answers the prompt and exits, which is the closest it offers.
if [[ -n ${prompt:-} ]]; then
command=(hermes --yolo --oneshot "$prompt")
# Keep inherited flags after chat so older Hermes subparsers do not clear them.
command=(hermes chat --yolo --tui "--query=$prompt")
else
command=(hermes --yolo)
fi