# Gemini pro 2.5 doesn't work in Agent mode

**URL:** <https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769>\
**Category:** Bug Reports\
**Created:** [July 18, 2025, 12:49pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769 "2025-07-18T12:49:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Jacobsen](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Patrick\_Jacobsen](https://forum.cursor.com/u/Patrick_Jacobsen)\
**Post date:** [July 18, 2025, 12:49pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/1 "2025-07-18T12:49:29Z")

</div>

### Describe the Bug

The Gemini 2.5 Pro model is not working in Agent mode. It’s been unstable since almost 2 days ago.

Getting this all the time:  
“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”

I am forced to use Sonnet 4 which is an absolute mess with some tasks and just wastes tokens overthinking.

The last thing I saw was that it started infinite looping some text in a file. I stopped it and after that I get that message, it’s now been like this for about 4 hours.

Ask mode works with the model. If it’s in Ask mode and it tries to edit a file (like in agent mode) the model says it can’t process the request.

### Steps to Reproduce

Not sure, I have not found a repeating pattern yet.  
The last thing I saw was that it started infinite looping some text in a file. I stopped it and after that I get that message, it’s now been like this for about 4 hours.

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4  
VSCode Version: 1.99.3  
Commit: a8e95743c5268be73767c46944a71f4465d05c90  
Date: 2025-07-10T16:53:59.659Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.4.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 19, 2025, 1:18pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/2 "2025-07-19T13:18:20Z")

</div>

Hey, do you have MCP servers enabled? Try disabling them and check again.

---

<div class="post-metadata">

**Author:** ![msimon](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/msimon/32/72140_2.png) [@msimon](https://forum.cursor.com/u/msimon)\
**Post date:** [July 21, 2025, 3:23pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/3 "2025-07-21T15:23:47Z")

</div>

I’m having the same issues since last week.  
It’s indeed working by disabling the MCP servers, but that’s a very annoying limitation.

Any reason why MCP server would not work with gemini? I especially use Sentry & Notion

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 21, 2025, 3:26pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/4 "2025-07-21T15:26:59Z")

</div>

If you have MCP Git, disabling it should resolve the issue until we fix it.

---

<div class="post-metadata">

**Author:** ![msimon](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/msimon/32/72140_2.png) [@msimon](https://forum.cursor.com/u/msimon)\
**Post date:** [July 21, 2025, 3:42pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/5 "2025-07-21T15:42:38Z")

</div>

Seems like the one causing issue is Notion. I’ll turn that off for now.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 12, 2025, 3:43pm UTC](https://forum.cursor.com/t/gemini-pro-2-5-doesnt-work-in-agent-mode/119769/6 "2025-08-12T15:43:17Z")

</div>

Closed on August 12, 2025, 3:43pm UTC

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