Skip to content

Provider connection/API failures sometimes trigger "API request cancelled" even though I did not cancel it #5895

@pwilkin

Description

@pwilkin

App Version

3.23.14

API Provider

Google Gemini

Model Used

gemini-pro-2.5

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

  1. Use Gemini
  2. Gemini is buggy and unresponsive like today
  3. Sometimes, instead of reporting a provider error, Roo will act like the user cancelled the task, even though the "Cancel" button wasn't preseed.

💥 Outcome Summary

I would expect a normal API failure together with a retry attempt (and most times that is what happens), but sometimes I get this behavior where instead I get an "API Request Cancelled" message and the execution just stop. Oftentimes, this will often lead to tasks being abandoned with no noticeable user notification, since for all UI intents and purposes this looks like the task was abandoned by the user. I am often running 2 or 3 VSCode instances and switching between them, this way I often don't realize that my task execution has halted.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions