Commit Graph
1 Commits
Author SHA1 Message Date
Claude 77fbe6cf98 Queue: keep cards on cancelled delete, clean up missing files, fix history limit and workflow loss
1. Cancelling the Recycle Bin dialog no longer removes the card. Disk deletion now runs
   before the card animation and the card is only removed if nothing was left undeleted;
   an already-missing file (404) counts as done. Shared helper deleteFilesWithFeedback.

2. Cards whose output files are gone (TEMP cleared) are cleaned up again, but verified:
   new POST /comfy-sidebar/files-exist lets the client confirm with the server instead of
   trusting a single failed image request (the reason history was previously kept). Runs once
   after history loads and when a card's last image fails. Completed jobs only; text-only jobs
   and cancelled/failed cards are never removed. New setting 'Remove Cards With Missing Files'
   (default on). When off, the card is kept text-only.

3. History limit evicted the wrong cards after a reload: the server keeps runs the sidebar
   already pruned; re-adding them as new gave them higher sequence numbers than saved cards,
   so the newest runs were pruned. History older than a known card now only fills free slots
   and ranks below existing cards.

4. Workflow is kept in storage unless it can be re-read from a saved output PNG (text-only,
   temp previews, video/webp, failed jobs). On storage quota errors, old workflows are shed
   before any card is dropped.
2026-11-15 18:02:24 +00:00