mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
ff2b59f934
The hero_command_copied event fired by the landing-hero command cards carried no surface discriminator. HeroStartActions renders on both the home hero and every framework landing hero; the "onboard" card's command is byte-identical on every page, so onboard copies could not be attributed to a surface from the event alone (only the "create" card embeds the framework in `command`). Add `location: window.location.pathname` to the payload, mirroring the `cli_command_copied` event the global <CopyTracker> already emits for the same copy so the two paired events join on the same dimension. Guarded for SSR to match the sibling. Adds a source-assertion guard test in the shell-docs node-env convention. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>