mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
1dde897af3
fixture[8] (userMessage:"project planning", turnIndex:0) returned a query_notes toolCall. aimock matches userMessage by substring, so "project planning" also matched the test prompt "Find my notes about project planning"; as a turnIndex:0 'scripted turn' it beat the correct terminal fixture[2] (toolCallId-keyed, content-only) on the follow-up turn, so the agent kept getting another tool call and looped ~30x, never emitting the done signal (D6 done-signal-missing). Remove turnIndex:0 from fixture[8] so it's a plain fallback that loses to the terminal fixture by registration order (matching the langgraph-typescript shape). D6 now green: two real ~6s runs (was a 120s timeout). Note: langgraph-python has the identical bug (still red) — same one-line fix applies there; tracked separately.
5.6 KiB
5.6 KiB