mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
01466e5629
When the backend emits RunErrorEvent via the AG-UI protocol, several components did not handle it: - ProxiedCopilotRuntimeAgent: isRunning stayed true, causing data-copilot-running to never transition to false (infinite spinner) - StateManager: activeRun entries were never cleaned up, runFinished flag never set (stale state on subsequent runs) - Angular CopilotKitAgent: same isRunning bug as the proxy agent - useAgentNodeName: node name stuck at last step instead of "end" onRunErrorEvent is distinct from onRunFailed — the former handles protocol-level RUN_ERROR events from the backend, the latter handles local exceptions (network errors, deserialization failures).