From d7ae1828d64f13fd7681bdaa38122d2bdf40ec2f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Jul 2026 05:58:26 +0000 Subject: [PATCH] Use a concrete example (SaveLatent) in count_previewable_outputs docstring --- comfy_execution/jobs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comfy_execution/jobs.py b/comfy_execution/jobs.py index 1ea5daebc..b3f6c88e3 100644 --- a/comfy_execution/jobs.py +++ b/comfy_execution/jobs.py @@ -330,9 +330,10 @@ def count_previewable_outputs(outputs: dict) -> int: Count only outputs that would actually render in the expanded asset view, i.e. items is_previewable() accepts (image/video/audio/3D/text). Kept separate from get_outputs_summary()'s outputs_count, which counts every - output item regardless of media type, so a job with non-previewable - outputs (e.g. a raw JSON blob from a custom node) alongside real media - doesn't inflate the Media Assets badge beyond what the expanded view shows. + output item regardless of media type, so a job with a non-previewable + saved file alongside real media (e.g. SaveLatent's .latent output next to + a SaveImage output) doesn't inflate the Media Assets badge beyond what + the expanded view shows. """ count = 0 for node_outputs in outputs.values():