fix: roll back rejected marker writes atomically

Issue: #442
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-04 00:15:44 +03:00
parent 77ac72d15d
commit fcd4e3ddfe
36 changed files with 1138 additions and 462 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ test('stable space ids use exact lookup and abort before side effects', () => {
const guardAt = saveMarker.indexOf('if (!targetSpaceModel) return;');
const busyAt = saveMarker.indexOf('busy: true');
const migrateAt = saveMarker.indexOf("type: 'houseplan/files/migrate'");
const configMutationAt = saveMarker.indexOf('cfg.markers = markers');
const configMutationAt = saveMarker.indexOf('candidate.markers = markers');
assert.ok(exactAt >= 0 && exactAt < guardAt && guardAt < busyAt
&& busyAt < migrateAt && migrateAt < configMutationAt);