Why is the Agent always using Genkit (AI Flow) for important things?

Why is the agent always resolving to using Gemini or genkit for things like flows or actions? Do they really work? It reverted my email service to Aiflow without me even knowing now it has been so confused to fix my Transactional email service to work again. We tested everything and it was working perfectly before only to agent to give itself the permission to delete the API keys from envinmont file and process ai flow for email actions etc.

The model might have gotten confused based on the instructions given. I recommend submitting a bug describing your steps just in case it’s an issue with the system prompt for Firebase Studio.

I agree with @dms it’s hard to say without knowing the specifics about the prompts used. You should submit a ticket explaining your issue for the support team to take a closer look at.