fix: harden history recovery and graph persistence regressions

This commit is contained in:
Youzini-afk
2026-03-31 22:48:48 +08:00
parent 1098c33a93
commit 7d71d1015e
5 changed files with 669 additions and 33 deletions

View File

@@ -324,6 +324,7 @@ export function clearHistoryDirty(graph, result = null) {
graph.historyState.historyDirtyFrom = null;
graph.historyState.lastMutationReason = "";
graph.historyState.lastMutationSource = "";
graph.historyState.processedMessageHashes = {};
if (result) {
graph.historyState.lastRecoveryResult = result;
}