Commit Graph
10 Commits
Author SHA1 Message Date
Claude fd830f2236 Replace clean dropdown with a Clear Temporary button
- Drop the three-option dropdown; restore plain header buttons
- Add Clear Temporary: removes finished cards that hold nothing saved
  (text-only cards and cards whose files are all in TEMP) together with
  those temp files; a card with any file in Outputs is kept
- Reuse the existing Recycle Bin / permanent delete setting and the trash
  fallback dialog; cards whose files could not be deleted are kept
- Show the card count in the tooltip on the first press, skip arming when
  there is nothing to clear
- Move the renumber button out of the header (Alt+R and the command/context
  menu entries are unchanged)
2026-11-19 14:12:33 +00:00
m0rtus59 5c5558dc9b Add text-only history cleanup action 2026-11-17 00:12:58 +05:00
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
Claude 411bb83fe2 Remove unused imports; rename leaked moonCopyCode global
ESLint (no-unused-vars) found 9 unused imports. Also window.moonCopyCode (a leftover
name) is now window.comfySidebarCopyCode.
2026-11-15 11:24:00 +00:00
m0rtus59 2286083b9b Bound Queue prompt extraction request sizes 2026-11-10 16:16:56 +05:00
m0rtus59 2941e48879 Populate Queue prompt search text with shared Python parser 2026-11-10 16:15:51 +05:00
m0rtus59 700b85408c DRYing 2026-11-08 20:24:09 +05:00
m0rtus59 f5074d5aec Fix preview memory leaks, false cancelled runs, and double-decker cards
- Fixed memory leak by revoking live preview blob URLs

- Fixed race condition that falsely marked completed runs as Cancelled

- Fixed double-decker card layout: 3D, Audio, and File cards now embed workflow images as background thumbnails

- Fixed Runtime Preview mode failing to deactivate after closing Text or 3D viewers

- Prevented video dimensions from leaking onto 3D and Audio cards

- Sorted workflow outputs by canvas execution order so final node output is always prioritized

- Fixed Windows Explorer failing to highlight files when paths have spaces
2026-10-02 22:45:24 +05:00
m0rtus59 a17314673e Job preview fixes and improvements 2026-09-11 00:59:32 +05:00
m0rtus59 8343f216fc Refactor. Improve light theme compatibility. Add offline 3D viewer & CSP support. Improve file deletion logic 2026-09-10 21:57:14 +05:00