Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(hooks): match a leaked fixture event by its URL, not any mention

AkitaOnRails39d1692e5291
diff --git a/tests/hooks/test_lib.sh b/tests/hooks/test_lib.sh
index f75057fe..75e26d40 100755
--- a/tests/hooks/test_lib.sh
+++ b/tests/hooks/test_lib.sh
@@ -1075,8 +1075,11 @@ PS_BRIEF_STATIC=$(grep -Fq 'if ($Event -eq "session-start" -and -not $BriefingOn
&& printf 'ok' || printf 'missing')
assert_eq "powershell session-start handoff GET carries the briefing keys" "ok" "$PS_BRIEF_STATIC"
+# A spooled fixture event names this run's temp tree or targets the fake
+# `memory.test` host. Live sessions share the spool and may mention that host
+# in their own payloads, where it is JSON-escaped, so match only the URL field.
assert_eq "no fixture event was spooled into the caller's data dir" "" \
- "$(grep -rlF -e "$TMP" -e 'memory.test' "$CALLER_SPOOL" 2>/dev/null | head -n 1)"
+ "$(grep -rlF -e "$TMP" -e '{"url":"http://memory.test' "$CALLER_SPOOL" 2>/dev/null | head -n 1)"
# --- summary ----------------------------------------------------------
printf '\n%d passed, %d failed\n' "$PASS" "$FAIL"