Fix CI demo smoke session assertion

This commit is contained in:
Yichen Jiang
2026-07-01 19:04:43 +08:00
parent d181e6ba33
commit ca4ebb67dc

View File

@@ -89,9 +89,9 @@ jobs:
echo "$out"
echo "$out" | grep -q '\[tool call\] echo({"text":"ci smoke"})'
echo "$out" | grep -q '\[tool result\] ECHO: CI SMOKE'
# The JSONL backend (root ./.sessions, no cwd → _no-cwd bucket) writes a
# per-run session log named main-session-<uuid>.jsonl. Assert one exists.
ls .sessions/_no-cwd/main-session-*.jsonl >/dev/null
# The stdio app records process.cwd(); the JSONL backend stores that
# session under the cwd bucket as main-session-<uuid>.jsonl.
test -n "$(find .sessions -path '.sessions/cwd-*/main-session-*.jsonl' -type f -print -quit)"
rm -rf .sessions
# The published `bin` is `lib/bin.js`, run under plain `node` by a real