Vercel GitHub-connected project deletes whole codebase after prompt

Vercel GitHub-connected project deletes files after prompt / redeploy
Description
My project is hosted on Vercel and connected to GitHub. Starting yesterday, every time I run a prompt (via Vercel v0), the system removes most of the project files, leaving only a small subset of changed files and causing import/module not found errors.
Steps to Reproduce
Create or open a Vercel project connected to GitHub
Ensure the repository contains a full, working codebase
Run a prompt / redeploy using Vercel (v0)
Observe that most files are removed after the prompt completes
Expected Behavior
The prompt should only modify or add the files relevant to the change, without deleting unrelated files or the existing project structure.
Actual Behavior
Large portions of the codebase are deleted
Import errors occur due to missing files
Re-deploying or forking from main does not restore the files
Creating a brand-new Vercel project with the same repo results in the same issue
What I’ve Tried
Re-deploying from main
Reverting to stable commits
Creating a new Vercel project
Reconnecting the GitHub repository
Impact
This blocks development entirely, as every prompt causes destructive changes to the project and makes the deployment unusable.
Additional Notes
This behavior started recently (from yesterday). The same repository and setup worked correctly before that

Did you know there’s another category dedicated to v0 topics? A human should be here soon to help, but the answer may already be available even faster in one of these other posts.

Our docs are a great place to start.

We also have a walkthrough to help guide your workflow.

And these recordings can give you a look at v0 features and strategies in action shown by our Community:

https://community.vercel.com/tags/c/events/42/v0

Creating a brand-new Vercel project with the same repo results in the same issue

What do you mean by this? v0 does not currently support syncing v0 chats to existing github repos (coming soon but not here yet)

i deleted the project from vercel that is connected to my repo.
Created a fresh project on vercel and connect the git repo again.
Then on v0 , i attached that as shown below. Also connected the git repo.
Got all the file from the repo.
Then i prompt and all files got deleted again. On the mentioned files remains sometime.
Like if i need changes in a specific file we provide the path of that file. But results in removing the code base.
Happens to me like many many times. Need to fix it so i can proceed with the work.

@jacobparis
Before the issue , i do prompt and got the changes + all other files remains same. Now whole code base is getting removed.

How are you “connecting the git repo”?

After clicking this it should show a modal to create a new repo, but there is no support for entering an existing one


I connected to the Vercel Project and it automatically connected to the git associated with it