Critical Infrastructure Issue: Persistent Environment Corruption and Failed Restores

Hi everyone,

I am reporting a severe technical failure in the Google Cloud Console / AI Build environment (Gemini 3 Flash Preview). My development environment is currently stuck in a “corruption loop” that makes it impossible to return to any working state.

The Situation:

  1. The Context: I was performing a large-scale UI upgrade via the AI Agent (~17 files edited).

  2. The Trigger: The operation stopped mid-way due to “Quota limits exceeded”.

  3. The Action: Since the environment was in an incomplete state, I attempted to Restore the app to a previous stable checkpoint.

  4. The Failure: The restore failed with: “Encountered retryable error from model provider: Agent execution terminated due to error.”

The Problem - Persistent Corruption: I have tried restoring to multiple different previous versions that were 100% functional, but the environment remains broken. Regardless of which historical checkpoint I choose, I encounter persistent Vite import errors.

This proves the issue is NOT with my code, but with the environment’s inability to synchronize file contents after the Quota error.

Examples of Errors (Persistent across all restore attempts): Every time the app tries to rebuild, it fails on “ghost” imports that shouldn’t exist in the restored version:

  • Error A (Missing Utils): [plugin:vite:import-analysis] Failed to resolve import "../utils/timelineUtils" from "store/useSubtitleActions.ts"

  • Error B (Missing Tabs): [plugin:vite:import-analysis] Failed to resolve import "./KineticTabs/LayoutTab" from "components/Properties/KineticSettingsForm.tsx"

Observations:

  • Desynchronization: The file system seems to have reverted the file structure, but the file contents are still stuck with the “broken” upgraded code.

  • Inconsistency: Every time I refresh the application (retriggering the build), it cycles through these errors. It’s as if the build tool is seeing a mixture of several different versions simultaneously.

Request:

  1. How can I perform a “Hard Factory Reset” of the project files to a specific checkpoint, bypassing the AI Agent’s current corrupted state?

  2. Is there a way to clear the environment/Vite cache that seems to be holding onto “zombie” imports?

  3. Since the app was working perfectly before the restore attempt, how can I regain access to my functional code?

P.S
I think it’s insane that we don’t have a real working Bug Report option for reporting such serious bugs.