Firebase Studio AI Slows Down, Authentication Issues With Google Workspace

I am having the worst luck right now with firebase studio prototyper. I have followed a solution that was posted on here regarding the use of /clear, reseting the chat history, and doing all that. But it would seem that it still operating very slow or doesn’t respond at all. Regardless of these terminal command fixes and chat clearings.

Additionally, I am setting up a project that interacts with my employers google workspace account. I am basically creating a cross between click up and another Human Resources Manager. The project is internal and I have used firebase authentication and configured the google cloud OAuth credentials to request scopes from a few google API’s. I also have made sure that the correct authorized domain urls are added and the authorization redirect is configured with the correct links. What keeps happening though when I try to test a live version or a preview version of my app is that when I try to sign in it just loops me back to the log in screen and doesn’t proceed to go into the main page. I am also using Firebase App Hosting. Any ideas? I am new to this and I am sure I am missing something.

1 Like

Mine too
my work flow has been stopped and its sucks

1 Like

How did you clear your chat history? I can’t do it. Can you help me?

1 Like

you can use /clear to clear the messages.

edit:
have you tried /clear and then ‘reset’ ?

also, I just finished going about doing this: How-to Enabling Prototyper on Existing Project + Prototyper Full Context Clear

I followed Carlos’ bit first, then went back up to #7 under DaC’s post.

All went smoothly except that it doesn’t read the ‘1st.md’ instructions when I load my workspace. Thankfully Gemini still has the context even though I deleted the capra-thread content and is actually working smoothly for me now.
I felt confident deleting that capra-thread cause I backed it all up (ie. ‘context_backup’ in Carlos’ post, step #5)

Actually the 1st.md is your first prompt, you have to either copy and paste it to the prototyper chat or explain this to him, so your very first prompt after resetting would be something like this:

Read the file context/1st.md located at the project folder and follow its instructions

I think I got the google workspace authentication stuff figured out. There was a URL mismatch between what firebase hosting gives you. But the Prototyper issues continue! I am getting a “Sorry I hit a snag. Please try again shortly or modify your prompt” then it shows an error “Cannot read properties of undefined (reading ‘role’)”

Hi @Zachary_Wise I also got this issue and still struggling to solve it.
There is another thread only on this issue.

https://community.firebasestudio.dev/t/cannot-read-properties-of-undefined-reading-role-triggered-on-every-prompt-even-with-empty-context-seems-like-a-middleware-or-handler-bug-with-no-fallback-on-missing-role/14210

1 Like

I followed the link you posted and saw a response by one of the devs. Anyways, there instructions were vague. I opened up studio, started a new terminal, ran:

code /home/user/.idx/ai/capra-context-state.json

And then I had to actually rename the “capra-text-state.json” to “prototyper-context-state.json” instead. I went and followed the dev’s instructions on starting a new workspace. It’s not called capra-text-state.json anymore. So instead of using that in the command, try this in the new workspace:

code /home/user/.idx/ai/prototyper-context-state.json

I also had to make sure the old capra-text-state.json would fill in the correct information into the new prototyper. So I copied the file, pasted it into an ai model that works, pasted the prototyper context state from the new workspace in, and used this prompt using the “Tipsplit” example project:

My Firebase Studio project context for [INSERT YOUR PROJECT NAME] is showing placeholder data instead of actual project information. I have a working example from a TipSplit project that demonstrates the correct JSON structure with populated core features, UI guidelines, and agent histories. I need to update my project context to follow that same format.