diff --git a/first-chunk-e2e/first_chunk.py b/first-chunk-e2e/first_chunk.py index 44291016..e5751960 100644 --- a/first-chunk-e2e/first_chunk.py +++ b/first-chunk-e2e/first_chunk.py @@ -113,6 +113,10 @@ def failures(requests: mock_messages_api.Requests, before: dict[str, str]) -> li found.append(f"no chunk finished within {PATIENCE} s; the loop's tmux windows show:\n{windows()}") if not any(SETUP_INSTRUCTION in text for text in texts): found.append(f"none of claude's {len(texts)} requests held the setup's CLAUDE.md, so the loop's home did not load") + for n, text in enumerate(texts): + if OWN_INSTRUCTION in text: + i = text.index(OWN_INSTRUCTION) + print("DEBUG", n, len(texts), text[max(0, i - 700):i + 100], "\nSTART", text[:600], file=sys.stderr) if any(OWN_INSTRUCTION in text for text in texts): found.append("a request held the person's own CLAUDE.md, so `~/.claude` loaded in the loop") after = snapshot(HOME / ".claude", HOME / ".claude.json")