My files gets overwritten with "..." everytime deepseek changes the content in it

My files like index.css, vite.config.js etc gets overwritten with three dots like “…” . I use deepseek coder provider. Then it never recovers from it if i ask in the prompt to fix it. Any idea why? Am i missing any config changes in bolt.diy ?

Hey @praneethpvrealty,

this is a known problem at the moment for some LLMs/Providers or often when to projects get bigger.
The problem is, that the LLM does just provide DIFFs and not the full code, but bolt.diy cannot handle this at the moment. This is plannend to implement, but not ready.

So you would need to workaround and try to get the LLM provide the full code, with e.g. a prompt like this:

Refactor the code. Make sure you provide the full source code for every file.

Sometimes this helps. Also you can try export your project and reimport, so you get a new chat history.

Furthermore try out the experimental features in settings:

Hope this helps

1 Like

Hmmm. I will try to follow this and inform here.

1 Like

I updated the prompt file with very specific instructions and it didn’t work. I also installed linting, prittier, husky, and a couple of other things and configured them to try and prevent the code rewrites. Claude gave several increasingly more strict solutions and I kept testing and applying stricter and stricter solutions around the code creation but nothing worked. Ended up rolling my code back to a known working state.

Note, my project does have ~80 files and some degree of complexity so we know why the LLMs behave like this. If your project gets to this stage, I don’t think there’s much you can do because every time you make a change the LLM changes a file and removes code so you end up chasing that while you’re also trying to fix/refactor/simplify your project. You end up going around in circles.

1 Like

For some current understanding of this - checkout the following thread…

Excited about Diffs feature - Roadmap

And a great chart to show capability and editing format (including edit format), check the following link…

Aider LLM Leaderboards - Models and mhow they compare

If any of this helps, please leave a note here.

1 Like