test(claude): drop flaky token-echo assertion in autonomous-wake test

Relied on Claude echoing AUTONOMOUS_WAKE_<token> verbatim, which is model-compliance, not the wake mechanism. The structural turn_started + turn_completed pair on the post-foreground subscribe stream is uniquely emitted by startAutonomousTurn() and proves the autonomous live turn fired.
This commit is contained in:
Mohamed Boudra
2026-05-09 14:53:47 +07:00
parent ed07452c80
commit 68ceac492c

View File

@@ -399,9 +399,6 @@ describe("ClaudeAgentSession integration", () => {
expect(
liveEvents.some((event) => event.type === "turn_started" && event.provider === "claude"),
).toBe(true);
expect(compactText(getAssistantText(liveEvents))).toContain(
autonomousWakeToken.toLowerCase(),
);
expect(liveEvents.at(-1)).toMatchObject({
type: "turn_completed",
provider: "claude",