Your issue is because:
1- the cursor agent doesn’t work with gemini. Some times the diff edit even doesn’t work.
2- Cursor does semantic search to lower the token they sent to models.
The big advantage for Gemini is the context window, use it with aider, clien or roo code.