Skip to content

Bug: API Streaming Failed errors when canceling a reasoning model task #4039

Open
@DanielusG

Description

@DanielusG

App Version

3.18.4 (dfa06c7)

API Provider

OpenRouter

Model Used

Deepseek R1 (free) but all reasoning models cause this error

🔁 Steps to Reproduce

  1. Select a reasoning model (e.g., R1).
  2. Submit a prompt or question that requires significant processing time from the model.
  3. While the model is actively processing (in the "thinking" phase before streaming results), click the 'Cancel' button.
  4. Observe the first error message (See Screenshot 1 below).
  5. Click the 'X' button to close/dismiss the task associated with the error.
  6. Observe the second error message (See Screenshot 2 below).

💥 Outcome Summary

  • Screenshot 1:

Image
Shows an "API Streaming Failed" error with the specific message [RooCode#say] task <task_id> aborted.

  • Screenshot 2:

Image
Shows the same "API Streaming Failed" header, but the detail area below now contains Task error: It was stopped and canceled by the user.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Issue [Unassigned]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions