mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-23 02:16:08 +00:00
feat: Implement file lock checks
This commit addresses the issue of LLM-generated changes potentially overwriting locked files. Key changes: - Modified how actions are run to accept a FilesStore instance. - Before writing to a file, I added a check to see if the file is locked. If a file is locked, the write operation is skipped and a log message is generated. - Updated how actions are initiated to include the FilesStore instance. This change enhances the robustness of file handling by ensuring that your defined file locks are respected during automated code modifications by me.
This commit is contained in:
parent
b044ae3302
commit
bec88dadb8