Keep prompted Hermes sessions local

Clear inherited session-source tags for Omarchy's local one-shot process so Hermes 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 23:07:42 -05:00
co-authored by Codex XHigh
parent 36353296aa
commit 64203cc208
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@
set -euo pipefail
prompt=${1:?usage: omarchy-agent-hermes <prompt>}
unset HERMES_SESSION_SOURCE
usage=$(mktemp)
trap 'rm -f "$usage"' EXIT
+1 -1
View File
@@ -68,7 +68,7 @@ export HERMES_TEST_SETUP_MARKER="$setup_marker"
sentinel="$test_tmp/hermes-seed-must-stay-literal"
prompt="--help !Crash /quit {!touch $sentinel}"$'\ntrailing\\'
"$ROOT/bin/omarchy-agent-hermes" "$prompt" >/dev/null
HERMES_SESSION_SOURCE=gateway "$ROOT/bin/omarchy-agent-hermes" "$prompt" >/dev/null
mapfile -d '' -t oneshot_args <"$oneshot_log"
(( ${#oneshot_args[@]} == 4 )) || fail "Hermes literal seed has four one-shot arguments"