@copilotkitnext/core 1.54.1-next.2 → 1.54.1-next.4

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.
package/dist/index.umd.js CHANGED
@@ -1608,7 +1608,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1608
1608
  async runAgent({ agent, forwardedProps }) {
1609
1609
  if (agent.agentId) this._internal.suggestionEngine.clearSuggestions(agent.agentId);
1610
1610
  if (agent instanceof _ag_ui_client.HttpAgent) agent.headers = { ...this._internal.headers };
1611
- if (agent.detachActiveRun) agent.detachActiveRun();
1611
+ if (agent.detachActiveRun) await agent.detachActiveRun();
1612
1612
  try {
1613
1613
  const runAgentResult = await agent.runAgent({
1614
1614
  forwardedProps: {