Every edit and re-generation erases all context

I don’t know what is going on for 2-3 weeks, but whenever I upload a codebase, source, a single file or even for previously generated codes, up on a request for implementation or fix, V0 erases all other content, functions, import etc…

I have instructions on Knowledge, strict instruction on top prompt and each prompt..

Has anybody been experiencing this? Lately it messed up my so many files and my work.

Thank you

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

Hi, @aperiodics! Welcome to the Vercel Community :waving_hand:

Thanks for the detailed information. What are the prompts that you’re using? Can you give us an example - might be helpful!

Here are some workarounds that might help:

  1. Be explicit about preserving content: When asking for changes, specifically mention “please keep all existing code and just add/modify X”
  2. Use the QuickEdit approach: For smaller changes to existing files, ask v0 to use QuickEdit, which is designed for targeted modifications without replacing the entire file
  3. Upload the entire project at once: This gives v0 better context about the overall structure
  4. Break down complex changes: Instead of asking for multiple changes at once, do them one at a time
  5. Review before implementing: Always review v0’s suggestions before applying them to your codebase to ensure they don’t remove existing functionality

Let us know how you get on!