Preserve Hermes session workspace metadata

Keep the one-shot session on Hermes' native CLI source so it records the launch directory before the exact session is resumed in the TUI.

Co-Authored-By: Codex XHigh <noreply@openai.com>
This commit is contained in:
Spencer Bull
2026-08-27 22:50:28 -05:00
co-authored by Codex XHigh
parent 750dde5ed2
commit 288e387a22
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ trap 'rm -f "$usage"' EXIT
# TUI startup queries pass through Hermes' slash, shell, and interpolation
# dispatcher. One-shot treats the prompt literally and records its session ID.
HERMES_SESSION_SOURCE=tui hermes --yolo --usage-file "$usage" --oneshot "$prompt"
hermes --yolo --usage-file "$usage" --oneshot "$prompt"
session_id=$(jq -er '.session_id | strings | select(length > 0)' "$usage")
rm -f "$usage"