Gemini has a lot of problems with linting and editor

Describe the Bug

I don’t know if it is Gemini (using pro 2.5 exp 05-06) or Cursor but I get a lot of

"
It appears the automated editing tool is having difficulty applying the larger structural refactoring to the X state and is getting distracted by a linter error for Y. This linter error is likely a false positive due to the tool’s partial view of the file; the isElfPoemAnswerValid function is correctly defined within the guards object of the machine’s setup, which XState uses to resolve string guards.
"

The latest Gemini is for me the best with complex code, but it gets confused by linting really easily and stumbling on code implementation ever so often.

Also in Ask mode Gemini tries to update code, and of course fails.

Or is it a bug with Cursor or with Gemini?

Steps to Reproduce

first problem has to do with linting errors

second problem is easy to reproduce: in ask mode it will try to implement code

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:22.523Z
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.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue