I’m running into an issue with the Gemini agent, specifically within Firebase Studio’s Prototyper mode, and was hoping someone might have some insight.
When I try to use the Gemini chat agent while in Prototyper mode, it fails to process any prompt.
The request immediately fails with the following error message:
Sorry, I hit a snag. Please try again shortly or modify your prompt. path should be a path.relative()d string, but got "..."
This happens consistently, regardless of the prompt I use.
However, the Gemini agent works perfectly fine when I switch back to the standard Code mode.
I have tried using the /clear command to reset the chat history and have also performed a “Hard Restart” of the entire workspace. Neither of these actions resolved the error in Prototyper mode.
Given the specific error message, this seems to be a bug in how the Prototyper is handling file paths when sending context to the Gemini API.
Has anyone else encountered this? Is there a known fix or a better workaround I might be missing?
Any help or confirmation would be greatly appreciated!
Which browser are you using? It says it expects a string but gets something different. It could be a systemic failure, but I thought it might be related to the browser.
Right-click on an old version and click on the Creat Branch button. (I don’t recommend going back too far because new versions will disappear from this section. Just go back a few steps at a time. If this doesn’t solve the problem, it might make more sense to try a different method).
It would be great if you could mark the answer that leads to the solution as “Solution” so that people with this problem can see the solution more easily. It will be clear that it has already been solved before somebody enter it.