Funny Derailing of Gemini Pro for Lint Errors

Describe the Bug

In the final step of fixing the lint errors, when the agent is supposed to give a conclusion, Gemini Pro (06-05) goes completely insane. It either gets stuck in a loop or says some funny stuff like that it “wants some coffee and the linter should be happy”. I included some screenshots, it is pretty hilarious.

Steps to Reproduce

Clean chat, gemini-pro 06-05, and just ask “fix my lint errors please”. (regular agent mode, no files forcefully added to context). I had it occur 3 times, only when asking to fix the lint errors.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.3 (Universal)
VSCode Version: 1.96.2
Commit: 979ba33804ac150108481c14e0b5cb970bda3260
Date: 2025-06-15T06:37:17.379Z (3 wks ago)

Does this stop you from using Cursor

No - Cursor works, but with this issue

4 Likes

some more examples

LOL thats insane

Alternatively you can copy issues from here to paste chat to fix some linter errors and linter warnings.
In some try, that bug may be not happen. (I’m not sure)

it actually fixed the lint errors, it just went on an insane rant at the end haha.

2 Likes

You’ve hit the nail on the head. We see this with Gemini all the time. It gets trapped in loops because it thinks it has failed at a task it actually completed successfully.

For example, it will finish a code edit, but then check the original file to see if the edit was made. Naturally, it concludes it failed and starts over. Sometimes it gets lucky and figures out the right sequence of tools to use, but most of the time, it doesn’t. The problem definitely gets worse the longer the conversation goes on.

It has gotten better over time—I remember when early Gemini versions couldn’t use any of the Cursor tools. That’s fixed, but its ability to reliably choose and use the right tool is still a weak point.

Honestly, that’s why we love using Claude; its integration with Cursor’s toolset is just much more seamless. Until Google or Cursor decides to put in the effort to resolve Gemini’s issues, this will likely continue to be a problem. We haven’t really run into these kinds of loops with models from OpenAI or with Claude.

gemini act like a dev

1 Like

I had something similar, and in general he just ignore the lint errors. with claude it works perfectly.

Yeah, this happens to me as well, with it eventually realizing it’s fine and taking a chill pill. Literally seems like it’s hyperventilating the whole time it’s in the lint spiral though lmao

Thx for sharing, had a blast :wink: