Skip to content

Add per-file locks for write_file and stream_edit - #447

Merged
zfoong merged 1 commit into
V1.4.3from
file-lock-branch
Sep 9, 2026
Merged

zfoong merged 1 commit into
V1.4.3from
file-lock-branch

Conversation

@RooberSmoth

@RooberSmoth RooberSmoth commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

What:
Added a lock for write file and stream edit.
Why:
Only one of them can access the same file at the same time. This prevents corruption and errors if they edit the same information.

This is currently untested, but i will be testing it soon. I expect some errors.
UPDATE: I've tested using the craftbot as usual, nothing has broken so far? Any errors i got are related to other things currently in development like the Agent App operation/evolving,

@RooberSmoth RooberSmoth self-assigned this Sep 8, 2026
@RooberSmoth RooberSmoth added the Improvement Optimization and improvement over existing feature label Sep 8, 2026
@zfoong
zfoong marked this pull request as ready for review September 9, 2026 03:11
@zfoong
zfoong merged commit 6537d48 into V1.4.3 Sep 9, 2026
@zfoong
zfoong deleted the file-lock-branch branch September 29, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Optimization and improvement over existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants