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:
co-authored by
Codex XHigh
parent
36353296aa
commit
64203cc208
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user