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:
@@ -399,9 +399,6 @@ describe("ClaudeAgentSession integration", () => {
|
|||||||
expect(
|
expect(
|
||||||
liveEvents.some((event) => event.type === "turn_started" && event.provider === "claude"),
|
liveEvents.some((event) => event.type === "turn_started" && event.provider === "claude"),
|
||||||
).toBe(true);
|
).toBe(true);
|
||||||
expect(compactText(getAssistantText(liveEvents))).toContain(
|
|
||||||
autonomousWakeToken.toLowerCase(),
|
|
||||||
);
|
|
||||||
expect(liveEvents.at(-1)).toMatchObject({
|
expect(liveEvents.at(-1)).toMatchObject({
|
||||||
type: "turn_completed",
|
type: "turn_completed",
|
||||||
provider: "claude",
|
provider: "claude",
|
||||||
|
|||||||
Reference in New Issue
Block a user