Skip to content

🐛 Bug: Error: This operation was aborted #2675

@rambir4git

Description

@rambir4git

♻️ Reproduction Steps

  1. const { isLoading } = useCopilotChatInternal();
  2. const { setThreadId } = useCopilotContext();
  3. when agent is running ie isLoading == true, and a new thread id is set
    ...

✅ Expected Behavior

It should suppress Abort error and gracefully recover

❌ Actual Behavior

An error appears in console; Uncaught (in promise) Error: This operation was aborted. Pointing to this line:594
throw new Error(structuredError.message);

𝌚 CopilotKit Version

1.10.6

📄 Logs (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions