mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-07 23:01:06 +02:00
When a spool ran empty during a print and the AMS auto-switched to a backup, on_ams_change eagerly deleted the SpoolAssignment (fingerprint mismatch). on_print_complete then queried the now-deleted assignment and silently dropped usage. Snapshot all spool assignments into PrintSession at print start. At completion, prefer the snapshot over live DB queries in both the 3MF primary path and the AMS remain% delta fallback. Fall back to live query for backward compatibility with in-flight sessions started before upgrade.