Gemini API stopped randomly in agent mode

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using the agent mode with Gemini 2.5 pro (with my own API key) the agent mode stops mid thinking or does not think itself. This model becomes unusable with this as it has been occurring more recently. Any fix regarding this.

Steps to Reproduce

add you api key, then use the 2.5 pro agent based on your api key, after some usage it stops mid thinking or stop thinking itself. sometimes the thinking gets through and it stop mid file updates.

Expected Behavior

The model should think properly and generate response and update the files

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.6
VSCode Version: 1.99.3
Commit: 8bdbd55db6885f3d79f73cdacca5fcedef93d360
Date: 2025-08-15T02:08:45.149Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Hey. Is everything okay with your internet? Maybe you’re experiencing network interruptions? Have you noticed this behavior when not using your API key?

internet is fine , as other models does not have the same issue, sonnet, gpt. I will test with it without api key and provide an update.

1 Like

@deanrie it is also breaking when using without the API key, it stops mid thinking or implementation phase, may be an issue at the google’s end. Read some reddit post’s of gemini breaking mid thinking or streaming.

added snapshot of it stopping mid thinking (without api key)

Yes, this issue is on Google’s end, and the team is already working on it with them.

2 Likes

do we have any ETA or some update regarding this? It sometime works without the API key but with API key it just outright crashes.

experiencing same issue using gemini 2.5 pro via api key. pretty much unusable at this point

3 Likes

same issue. it starts generating then suddenly stops and get a message “We’re having trouble connecting to the model provider.”. it’s been going for a couple of days now

same issue here it stops mid thinking

I havent found anything in google docs, that gemini 2.5 has 200k context and have a need to summarize context.
How about, if I pay you $20 month, you will let me actually use 1M context ?
Fair deal huh? Since I’m paying for Gemini’s api key usage
And you will stop cutting the thinking & context windows under the hood.
Gemini 2.5 in cursor is the dumbest entity I have ever interacted with.
I’m using online version of gemini to actually solve the issues cursor’s gemini does

1 Like

same here. It stops while in chat mode

Facing the same issue as well.When I use Gemini, it runs for a second and then immediately stops, repeating this cycle and making it unusable. Are there any solutions?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

IDE output complete in middle of thinking

Steps to Reproduce

Run query in IDE

Expected Behavior

Return complete output

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.5
VSCode Version: 1.99.3
Commit: 823f58d4f60b795a6aefb9955933f3a2f0331d70
Date: 2025-08-25T17:40:25.290Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-139-generic

Does this stop you from using Cursor

Yes - Cursor is unusable

Can you guys confirm this with other coding IDEs, I just want to check if cursor is playing dirty here or not!

cause the first time this happened with me, cursor consumed the whole request token limit, causing Gemini API to start throttling requests.

Note: this is started to happen after cancelling my pro subscription (I thought to myself, Gemini free tier is more than enough for my daily uses anyway)

it works perfectly everywhere else and even within Cursor using the Gemini api key.
I’m pretty sure it’s not an issue from Google’s end as claimed here. It’s def some BS on Cursor’s end.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.