stackblitz / bolt.new

Prompt, run, edit, and deploy full-stack web applications
https://bolt.new
MIT License
9.05k stars 3.6k forks source link

Bolt asks to unlock a file that is already unlocked #2647

Open TheBlueHouse75 opened 1 week ago

TheBlueHouse75 commented 1 week ago

Describe the bug

Even after I lock almost all my files and only leave the one I want the AI to work on unlocked, the AI still prompts me to unlock that file, even though it's already unlocked.

Link to the Bolt URL that caused the error

https://frolicking-seahorse-a82041.netlify.app

Steps to reproduce

Capture d’écran 2024-11-18 à 10 47 14

Expected behavior

The AI should not ask to unlock the file and instead, starts to implement the requested changes

Screen Recording / Screenshot

No response

Platform

Additional context

No response

endocytosis commented 1 week ago

Appreciate the feedback! Do you know if you happen to have a .bolt/ignore file configured as described below:

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.

If so, this may explain the above behavior. If not, this may be a novel issue. Thanks!