AI Studio Build Agent deadlock: "An internal error occurred" due to .git conflict in project

Hello Google AI Studio Support Team,

I am reporting a persistent technical issue with the AI Studio Build Agent affecting my project, Путь Мистика Таро (Mystic Tarot).

Project ID: gen-lang-client-080055..
Workspace ID: 049f4858-8948-46c3-acd1-a54..

1. Issue description

Until recently, the Build Agent was working normally. On the previous day, I successfully completed several audit tasks and ended the session normally.

The following day, I submitted a request to audit the application’s storefront. From that point onward, the agent began returning:

“An internal error occurred.”

The request is cancelled almost immediately. The agent does not begin displaying reasoning or execution progress and does not appear to start analysing the project files.

2. Troubleshooting attempted

I have:

  • Started new chats in the original Mystic Tarot project and a separate Remix project named Mystic 1.
  • Reopened AI Studio on both my computer and Android phone.
  • Updated the API credentials.
  • Attempted to restore a previously saved project version.

The same failure persists across new chats, both project environments and devices.

The application itself can still run in the sandbox, although the Build Agent cannot process requests.

3. Workspace conflict symptoms

During the recovery attempts, AI Studio displayed a conflict-resolution dialog listing numerous internal repository paths under .git/, including .git/config, .git/description, and paths under .git/objects/.

The workspace also appeared to be attempting to reconcile a current snapshot dated October 9 with a restored snapshot dated July 28.

After attempting the restoration, the conflict interface reappeared, and the Build Agent continued to fail immediately.

I cannot independently confirm whether the repository metadata, workspace state or another internal component is responsible. However, the conflict state and the agent failure appeared during the same recovery sequence.

4. Assistance requested

Could your engineering team please investigate:

  1. Why the Build Agent fails before beginning request processing.
  2. Whether the workspace’s internal Git metadata or snapshot conflict state is preventing agent initialization.
  3. Whether there is a service-side or workspace-level issue affecting both the original project and the Remix.
  4. How to restore Build Agent functionality while preserving the existing source files and saved project versions.

If the workspace’s internal Git state is involved, please advise on or perform a safe, supported recovery of the workspace metadata or merge state without overwriting or deleting the working source files.

Please do not perform a destructive reset or rollback without first preserving the current workspace state and confirming the recovery procedure.

I can provide screenshots of the error and conflict-resolution interface, along with timestamps and any additional diagnostic information required.

Thank you for your assistance. I would appreciate escalation to an engineer familiar with AI Studio Build Agent, workspace persistence and snapshot conflict handling.

Kind regards,
Svetlana Gorbunov

Hello Google AI Studio Team,

​Following up on this issue as the workspace remains completely locked (.git/index.lock deadlock) and the Build Agent still returns “Internal Error” across all chats.

​Could someone please assist with clearing the server-side Git lock for Project ID: gen-lang-client-08005560..?

​Than

k you!

Hello @SvetlanaRaduga ,

I have DM`ed you for more details .

Hello Mahesh,

Thank you for looking into this.

I would like to clarify that I work with two separate applications within the same Google AI Studio workspace. I switch between them inside the same interface.

1. Mystic Tarot

  • Gemini model: gemini-3.1-flash-lite
  • Google Cloud Project ID: gen-lang-client-08005560..
  • AI Studio App ID shown in the URL: f4b88d23-5cd1-4c31-9994-320f34c51b..

2. Iriska Stylist Pro

  • Gemini model for Virtual Try-On: gemini-2.5-flash-image
  • Cloud Run service: iriska-stylist-pro
  • Regions: europe-west2 (test) and europe-west1 (production)

The same Build Agent issue currently affects both applications. In both cases, the agent immediately returns “An internal error occurred” without starting task execution.

The URL I can access shows the same App ID even when I switch to the Iriska Stylist workspace within the AI Studio interface.

Could you please investigate why the Build Agent is failing for both applications and clarify whether a separate App ID is expected for each application, or whether they are identified differently within the shared workspace?

I would appreciate guidance on resolving this issue while preserving both applications and their saved versions.

Thank you for your help.

Best regards,
Svetlana Gorbunov

ср, 14 окт. 2026 г., 13:33 Mahesh Sutar <notifications@discuss.ai.google.dev>:

Update regarding build agent status: “The caller does not have permission”

​

Hi Mahesh,

​I wanted to share a quick update regarding my ticket for “Mystic Tarot” and “Iriska Stylist Pro”.

​Previously, the build agent was instantly failing with a generic “Internal Error” (due to the .git conflict). Today, the status has changed across both projects: the build agent now attempts to execute, but then fails with the error:

The caller does not have permission .

​Could you please verify if this is related to permission/token resets on your end, and help restore the execution rights for my workspace?

​Thank you!

Svetlana Gorbunov

Topic: Follow-up: Iriska Stylist Pro - internal issue with refusal of publication / preliminary review
Hello, Mahesh,
Thank you again for breaking the recent impasse at Build Agent!
Now that the main workspace is up and running, I’ve wanted to address one separate, ongoing issue that has been affecting my other project, Iriska Stylist Pro, for about six months now.
Unlike my Mystic Tarot project (which runs smoothly in the construction set without problems), the built-in features of the Iriska Stylist Pro constantly fail:
Preview Failure: The built-in preview inside the constructor always throws up errors and cannot assemble the application, making it impossible to test in the editor.
Publication failure: The built-in “Publish” button constantly crashes on the server side (europe-west2) and disrupts the deployment.
Because of these major builder-level errors, I can’t use the preview and publish buttons at all. Instead, after each code setting, I am forced to manually upload the ZIP project archive and deploy it through Cloud Run only to test and publish my application.
Could you please ask the engineering team to study the configuration of the publication and preview pipeline for iriska-stylist-pro?
Technical details of the project:
Project ID: iriska-stylist
Project number: 8667012990..
Application ID: 1:866701299018:web:8294c6a76e23b67212c5..
Thank you for your continued help!
With best wishes,
Svetlana Gorbunov

вт, 20 окт. 2026 г., 19:24 Света Радуга s........@gmail.com:

Hello @SvetlanaRaduga ,

If this is a web app, check if the project contains any Android build or output files (such as build.gradle, build.gradle.kts, settings.gradle.kts, AndroidManifest.xml, or any .apk / keystore files). Having Android build files in a web project can cause the preview environment to treat it as an Android build rather than a web app, so removing them (after downloading a local backup if needed) may resolve the issue. If it still doesn’t work, try remixing post making this change.

Hi Mahesh,

Thank you for your suggestions.

I tested the Gradle-file approach in a separate Remix project, without modifying my original project. Unfortunately, this did not resolve the issue: AI Studio continued attempting a Gradle build instead of starting the existing Node.js web server. Port 3000 remained unavailable, and Preview continued to fail with “The dev server didn’t start, please fix it.”

I restored the original filenames and verified their checksums. My production project remains unchanged.

The web application itself works correctly after manual deployment to Cloud Run. The problem is specifically with the built-in Preview and Publish workflow in AI Studio.

I would like to preserve the Android source files because I plan to develop an Android version of the application in the future.

Could you please advise on the recommended way to restore the normal web Preview and Publish workflow while keeping the existing Android source files?

If this requires a platform-side configuration change or a different project setup, I would appreciate your guidance on the supported approach.

Thank you for your help.

Best regards,
Svetlana

пт, 23 окт. 2026 г., 09:19 Mahesh Sutar <notifications@discuss.ai.google.dev>:

Hello @SvetlanaRaduga ,

Thanks for testing this and for keeping your original project unchanged. If you want to keep the Android source files in the same project, you could try moving the whole Android project (the Gradle files, the app folder with the Android code, and any .apk or keystore files) into a separate subfolder, for example android/, so that the top level of the project only contains the web app files. Please download a local backup before making this change. If Preview still tries to run a Gradle build after that, could you please share the Applet ID of the app where you tested this and a screenshot of the Preview error?

We just released a number of fixes for the “An internal error occurred” issue. Thanks for your patience.