huskies: merge 1095 bug Shadow drift: set_name writes CRDT name register without updating pipeline_items.name

This commit is contained in:
dave
2026-05-15 12:03:15 +00:00
parent 46556d308a
commit 62d1535e76
3 changed files with 82 additions and 1 deletions
+3
View File
@@ -155,6 +155,9 @@ pub fn set_name(story_id: &str, name: Option<&str>) -> bool {
apply_and_persist(&mut state, |s| {
s.crdt.doc.items[idx].name.set(value.clone())
});
// Drop the lock before the shadow write so `read_item` can acquire it.
drop(state);
crate::db::sync_item_name(story_id);
true
}