mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-05 18:05:08 +08:00
outputs_count (get_outputs_summary) counts every output item across all nodes for a job, including non-previewable files (e.g. SaveLatent's .latent file). The Media Assets sidebar badge reads outputs_count, but the expanded asset view only ever renders previewable outputs (image, video, audio, 3D, text), so the badge can show a higher number than what a user sees when they drill in. Add count_previewable_outputs(), reusing the existing is_previewable() filter, and expose it as previewable_outputs_count on /api/jobs job entries (list, detail, and queue placeholders). get_outputs_summary() and outputs_count are left untouched so the true total stays available.