mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
2e05c9ce81
The snippet stated the collision rule under factory mode, which implied the runtime resolves it for you there. It does not. Config mode is where the runtime decides: `index.ts` builds the tool set from `convertToolsToVercelAITools(input.tools)` and then spreads the configured tools over it, so a shared name resolves to the backend tool. The rule now sits in that step. In factory mode the factory owns precedence, because nothing merges the two lists on its behalf. The showcase's own TanStack factory shows one choice, filtering forwarded tools through `!serverToolNames.has(t.name)`, but that is its decision rather than runtime behavior. The factory step now says so. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>