Description
📣 Issue Resolved: this fix has been merged into production and bolt.new now supports projects up to 2.5x larger!
Thank you to everyone in the thread above providing workarounds and helping each other. This is MUCH MUCH appreciated, as we are currently in the process of training our newly hired support staff, and working out of a backlog on the [email protected]/[email protected] email inbox (we will respond to EVERY SINGLE request).
If you are still looking for support for other issues, please start with our newly launched support center 🎉
What does this error message mean?
This error message means that your project has become too large for Bolt to sync the entire project with the AI.
As described in issue #678, Bolt.new syncs both the chat history & file system with the AI's memory. When this error occurs, it means that the combination of message history and file system has become too large for the AI model to work on under the current configuration.
What to do when you get this error
Here are a couple approaches to consider:
-
Clear the chat history to free up some space in the context window
This will only help if the chat history is filling a major portion of the context window (IE it is very long). As of 11/19/24, the way to clear chat history is to open your project in StackBlitz, Fork it, and re-open in Bolt. -
Reduce the Size of your project
This could be accomplished by breaking a large app into smaller chunks, and glueing it all back together outside of Bolt later. For example, separate backend and frontend into separate projects is a common developer pattern. This could be challenging for less experienced developers. -
ADVANCED USERS ONLY: .bolt/ignore
In every bolt project, if you open it in StackBlitz you can edit a file called .bolt/ignore, and in this file you can list out any folders or folders that should be excluded from the AI context window. For example, here is our vite react starter’s ignore files: https://stackblitz.com/edit/vite-shadcn?file=.bolt%2Fignore. Any files listed there will be completely invisible to the AI, and will clear up space in the context window. You’ll need to edit the .bolt/ignore file in StackBlitz and then reopen the project in bolt for the changes to take effect. Please note: hiding files from the AI can have unintended consequences as it is no longer aware of your entire project. This approach is very powerful, but is only recommended for advanced users who can make informed decisions about what can safely be excluded, and understand/resolve issues that may arise from this approach.
What are we doing about this?
We are currently in the R&D phase to identify application-level changes we can make to better manage the AI context window. Our current approach has the benefit of making Bolt.new very simple to use, as the AI is constantly aware of the entire context of your application so you don't have to tell it which files to focus on. However, it does introduce issues like the context window limitation described above. Stay tuned to this issue for future updates!
Activity