URGENT: AI Studio "Secrets" UI failing to load keys (App Development Blocked)

Hey everyone,

I’m running into a blocking UI issue in AI Studio and wondering if anyone else has experienced this recently or found a workaround.

The Issue:
The AI Studio “Secrets” panel seems to have completely detached from our project’s state. It is no longer generating all the text input fields required to manage our environment variables, even though they are clearly defined in our .env.example file.

What’s weird (The Diagnostic Proof):
We ran a backend diagnostic script that confirmed the container’s memory (process.env) does actually still hold all 18 of our previously saved secret keys! However, the frontend AI Studio Secrets UI is completely out of sync and refuses to display the text boxes so we can manage or update them.

Troubleshooting we’ve already tried:

  • We completely recreated and validated the /.env.example file to ensure all keys are properly declared inside.
  • We forced a full restart of the development server.
  • We performed hard browser cache clears.

Despite this, the Secrets UI remains incomplete. Since our app relies on third-party integrations, we are essentially locked out of managing our API keys (and we definitely don’t want to hardcode production secrets just to keep developing).

My Questions for the Community:

  1. Has anyone else experienced this UI desync recently?
  2. Is there a known workaround or a specific trick to force the AI Studio Secrets panel to reload?

Thanks in advance for any insights!

Hi @Weare

I wanted to follow up, Are you not seeing any secrets been displayed or is it getting truncated at a certain number ?

It’s truncated at 10, and I don’t have the option to update existing entries. Even after selecting “Add Secret” and clicking “Apply Changes,” the existing value in memory isn’t updated. Any idea what I should do? The app is quite complex from a security perspective.

Thank you for sharing this looking into it

Is there a proper way to report these issues to Google? I’m concerned that if we encounter similar problems, we won’t know how to resolve them.