mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
ba60df5d33
Add stable testids and rendering surfaces for the three tool-rendering cells so the e2e suite can distinguish each cell's strategy: - tool-rendering: register useRenderTool for get_stock_price and roll_d20; new StockCard / D20Card components with testids stock-card / d20-card / stock-price / stock-change / d20-value. Rename FlightListCard testid flight-list-card -> flights-card. - tool-rendering-default-catchall: drop the custom shadcn useDefaultRenderTool registration so the cell is truly zero custom-render-hooks. The framework's built-in DefaultToolCallRenderer now paints every tool call, with stable data-testid='copilot-tool-render' wrapper plus data-tool-name, data-args, and data-result attributes for inspection without expanding the card. - tool-rendering-custom-catchall: rename the wildcard renderer's testids from custom-catchall-* to custom-wildcard-* so the cell is distinguishable from the (now-OOTB) default-catchall demo. - packages/react-core: when no per-tool / wildcard renderer is registered, useRenderToolCall now falls back to the built-in DefaultToolCallRenderer instead of returning null.