@copilotkitnext/angular 1.54.2 → 1.54.3-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -508,6 +508,11 @@ class AgentStore {
|
|
|
508
508
|
onRunFailed: () => {
|
|
509
509
|
this.#isRunning.set(false);
|
|
510
510
|
},
|
|
511
|
+
// Protocol-level RUN_ERROR event (distinct from onRunFailed which
|
|
512
|
+
// handles local exceptions like network errors).
|
|
513
|
+
onRunErrorEvent: () => {
|
|
514
|
+
this.#isRunning.set(false);
|
|
515
|
+
},
|
|
511
516
|
});
|
|
512
517
|
destroyRef.onDestroy(() => {
|
|
513
518
|
this.teardown();
|