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:
1 parent
36353296aa
commit
64203cc208
2 files changed
+2
-1
No files matched your search
@@ -7,6 +7,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
prompt=${1:?usage: omarchy-agent-hermes <prompt>}
|
prompt=${1:?usage: omarchy-agent-hermes <prompt>}
|
||||||
|
unset HERMES_SESSION_SOURCE
|
||||||
usage=$(mktemp)
|
usage=$(mktemp)
|
||||||
trap 'rm -f "$usage"' EXIT
|
trap 'rm -f "$usage"' EXIT
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export HERMES_TEST_SETUP_MARKER="$setup_marker"
|
|||||||
|
|
||||||
sentinel="$test_tmp/hermes-seed-must-stay-literal"
|
sentinel="$test_tmp/hermes-seed-must-stay-literal"
|
||||||
prompt="--help !Crash /quit {!touch $sentinel}"$'\ntrailing\\'
|
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"
|
mapfile -d '' -t oneshot_args <"$oneshot_log"
|
||||||
(( ${#oneshot_args[@]} == 4 )) || fail "Hermes literal seed has four one-shot arguments"
|
(( ${#oneshot_args[@]} == 4 )) || fail "Hermes literal seed has four one-shot arguments"
|
||||||
|
|||||||
Reference in new issue
Block a user