fix(misc): keep block-tool params selected across store replace, perms parity for delete #4840
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Tool input (editor): Per-tool param fields use shared helpers ( Permissions: Reviewed by Cursor Bugbot for commit d915597. Configure here. |
Greptile SummaryThis PR fixes two distinct bugs: block-tool param values being lost across store replaces (e.g. workflow switching), and delete operations requiring only read-level membership when they should require the same write permission as creation.
Confidence Score: 5/5Safe to merge — both fix tracks are logically sound and well-tested, with no regressions identified in auth or state management paths. The permission-parity changes are additive restrictions on destructive operations (write required where read was previously sufficient), backed by updated tests. The synthetic-subblock reproject cycle is properly terminated by syncedRef being set before setValue, preventing infinite subscription loops. File ownership short-circuits in verifyRegularFileAccess are preserved so file owners are unaffected by the write gate. No pre-existing undo/redo concern survives — persistedUpdates is now used for both the operation queue and the undo record. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "fix tests and extract kb ownership helpe..." | Re-trigger Greptile |
|
bugbot run |
|
@greptile |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d915597. Configure here.
Summary
projection of the canonical tool.params
Type of Change
Testing
Tested manually
Checklist