Gemini 2.5 MAX agent mode doesnt work

I’m on a MacBook Pro M3, Cursor Version: 0.48.7

when I use Gemini 2.5 MAX in Agent mode it just replies with the code but without implementing it