fix(store): drop the replaced archive when the new one cannot be written

This commit is contained in:
bchanot committed 2026-10-14 23:15:54 +02:00
1 parent e5e2211476
commit a37c50b9ee
4 files changed
+23 -5

No files matched your search

+3 -1
View File
@@ -637,7 +637,9 @@ application itself builds.
readable one is replaced as before. The draft mirror is written only
when the report changes (an unrelated store change never removes it);
a refused write keeps the previous text and shows the `editor.save_failed`
banner until a write succeeds.
banner until a write succeeds; a refused archive write at a new session
removes the replaced session's archive rather than leave it paired with
the new draft.
4. A core that cannot load leaves the editor on the degraded notice
(before R2 a failed sheet chunk left it on "loading").
5. Home and `/new` no longer load the sheet into memory on mount.