Resume exact state fingerprints from ordered command checkpoints

This commit is contained in:
gloamxun committed 2026-12-02 03:55:50 +08:00
1 parent dc86f941b6
commit 3c09d6486d
5 files changed
+165 -21

No files matched your search

@@ -4126,9 +4126,10 @@ impl Executor {
}
// An identical completed state has the same fingerprint. Compare
// the entire state, including token source spans and assignments.
let outgoing_state = previous
.filter(|last| last.state == self.state)
.map_or_else(|| self.state.fingerprint(), |last| last.outgoing_state);
let outgoing_state = match previous {
Some(last) if last.state == self.state => last.outgoing_state,
last => self.state.fingerprint_with_prior(last.map(|last| &last.state)),
};
let format_pdf_images = self.captured_format_pdf_images();
Ok(Execution {
format_dumped: self.format_dumped,