mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
798ed56b03
The gen-ui-interrupt d6 probe drives two interrupt turns in one thread. Turn-2 failed because the langgraph-python/typescript fixtures ordered each pill's toolCallId resume-leg BEFORE its toolName first-leg. aimock dedups on userMessage (first-match-wins), so the text-only resume-leg shadowed the tool-emitting first-leg on the duplicate userMessage — the agent emitted a plain text reply with no schedule_meeting tool call, the interrupt never fired, and the time-picker-card never mounted. Reorder each pill so the toolName:schedule_meeting first-leg precedes its toolCallId resume-leg, matching the passing mastra/pydantic-ai ordering. The resume-leg still only matches when the last message is its tool result (toolCallId guard), so confirmation still works.
3.2 KiB
3.2 KiB