Files
copilotkit__copilotkit/showcase/aimock/d6/langroid/tool-rendering-default-catchall.json
Jordan Ritter b1f19bdc80 fix(showcase): rename catchall userMessage to 'forecast for Tokyo' to avoid chain pill substring collision
The previous 'weather in Tokyo' rename (388c69e68) was a substring of the
main tool-rendering chain pill prompt 'Chain a few tools in this single
turn: get the weather in Tokyo, search flights from SFO to Tokyo, and roll
a d20.' Because aimock loads fixtures alphabetically per integration dir
and uses substring match with first-match-wins, the catchall fixture
(loaded before tool-rendering.json) was intercepting chain pill matches
across 16 integrations.

Rename catchall fixture userMessage to 'forecast for Tokyo' — a phrase
not contained in any other pill prompt. Update the corresponding D5
catchall probe inputs in d5-tool-rendering-{default,custom}-catchall.ts
and the test assertions that pin those inputs.

Call-Site Enumeration: 'weather in Tokyo' remains intentionally in
page.tsx suggestions.ts pills (user-visible UX) and inside the chain
pill prompt itself — neither is in the substring-match path now.
2026-06-15 11:14:57 -07:00

38 lines
1.1 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for langroid / tool-rendering-default-catchall",
"sourceScript": "d5-tool-rendering-default-catchall.ts",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "Default catchall turn: weather in Tokyo \u2014 emits get_weather tool call. The built-in CopilotKit default renderer (copilot-tool-render testid) fires for unhandled tools. hasToolResult:false on first leg.",
"match": {
"userMessage": "forecast for Tokyo",
"hasToolResult": false,
"context": "langroid"
},
"response": {
"toolCalls": [
{
"id": "call_d6_lr_dc_weather_001",
"name": "get_weather",
"arguments": "{\"location\":\"Tokyo\"}"
}
]
}
},
{
"_comment": "Default catchall turn: weather in Tokyo \u2014 follow-up after tool result.",
"match": {
"userMessage": "forecast for Tokyo",
"hasToolResult": true,
"context": "langroid"
},
"response": {
"content": "Tokyo is 22\u00b0C and partly cloudy with light easterly winds."
}
}
]
}