mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
8436b29205
Round-2 review surfaced two cheap improvements; this commit lands them. All 7 round-1 findings were confirmed fixed by round 2. - core.ts onAgentsChanged: each iteration of the unregister loops is now wrapped in try/catch. A throw on iteration [0] no longer stalls cleanup for [1..n]; both registries' unregister paths are idempotent so re-attempts on the next onAgentsChanged are safe. - agent.ts abortRun: removed dead `if (!routedId) return;` after `routedAgentId()` — that method now throws (or returns a non-empty string), so the guard is unreachable. Tests: core 425 — all green.