Gemini sometimes terminates without going to the code generation stage

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
Done.

:lady_beetle: Provide a clear description of the bug
I prompt the agent to make some changes. It comes up with a good plan and ends its content with “I will now prepare the code changes” or similar. It then does nothing. I can wake it up with a “please, go ahead” prompt.

:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)
Unknown - it’s intermittent, maybe a 1 in 5 kind of issue.

:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
Windows (accessing via WSL2) 11.
Cursor 0.49.6

Hey, thanks for the report. Is this happening with the Gemini Pro or Gemini Flash model?

Gemini Pro 2.5 (happened with both old 2.5 Pro and the more recent release)

with Gemini 2.5 pro,

the file not found error is generated at the top of the chat session, and the agent can fix it itself,