herdr support: report idle/working/blocked, resume command, release
This commit is contained in:
1 parent
b223fd1f22
commit
789ee75a27
7 files changed
+287
-3
No files matched your search
@@ -26,4 +26,11 @@ import json, sys
|
||||
last = json.load(sys.stdin)[-1]
|
||||
assert last["path"].endswith("/responses") and last["body"]["model"] == "gpt-5.6-terra" and last["auth"] == "Bearer cx-token", last
|
||||
' || { echo "FAIL: gpt model not routed to codex"; cat "$tmp/err"; exit 1; }
|
||||
# inside herdr: working, idle and release reach the herdr binary; resume command carries the session
|
||||
printf '#!/bin/sh\necho "$@" >> "%s/herdr.log"\n' "$tmp" > "$tmp/herdr"; chmod +x "$tmp/herdr"
|
||||
echo '{"claude":{"access":"fake-token","refresh":"r","expires":99999999999999}}' > "$tmp/home/.hx/auth.json"
|
||||
HERDR_ENV=1 HERDR_PANE_ID=p7 HERDR_BIN_PATH="$tmp/herdr" HOME="$tmp/home" HX_BASE_URL="http://127.0.0.1:$port" "$root/target/debug/hx" -p "make hello.txt" > /dev/null 2>&1
|
||||
grep -q 'report-agent p7 --source hx --agent hx --state working' "$tmp/herdr.log" || { echo "FAIL: herdr working"; exit 1; }
|
||||
grep -q -- '-- hx --session .*jsonl' "$tmp/herdr.log" || { echo "FAIL: herdr resume"; exit 1; }
|
||||
grep -q 'release-agent p7' "$tmp/herdr.log" || { echo "FAIL: herdr release"; exit 1; }
|
||||
echo "e2e ok"
|
||||
Reference in new issue
Block a user