Issue Summary:
I’m encountering a consistent error in Firebase Studio when using the Gemini AI assistant, especially when asking it for help with UI-related code changes.
Every time I submit a prompt (even simple ones like “test”), I receive the following error:
bash
CopyEdit
❌ Sorry, I hit a snag. Please try again shortly.
Unsupported Part type{"metadata":{"purpose":"${e}","pending":true}}
This happens regardless of the prompt content, and the error seems to be internal. I’ve tested with basic prompts, advanced prompts, and across sessions — nothing works.
Where it’s happening:
- Inside Firebase Studio
- In the Gemini AI assistant panel
- While trying to use it to modify or analyze project files
What I’ve tried:
- Reloading Firebase Studio
- Restarting the project
- Simplifying prompts
- Checking for service outages
- Inspecting browser console (no obvious network failure)
Suspected Cause:
It appears that the Gemini assistant inside Firebase Studio is referencing an unsupported or malformed metadata
part type — possibly due to
a bug in the assistant’s backend or misconfiguration in message formatting.