Files
wildminder-ComfyUI-KEEP/tests
WildAi 726da45f65 fix(nodes): do not type check the linked model pack during prompt validation
ComfyUI runs a V3 node's validate_inputs during the prompt validation, where
the links are not resolved yet: a connected pack arrives as None (after the
list unwrapping) or as the (None,) marker of a missing link.  Both nodes
rejected that unresolved pack, so every prompt failed with the same error
once per input.

- validate_inputs now accepts an unresolved pack and only refuses a value
  that is present but of the wrong type.
- execute raises the actionable error for a pack that is really wrong
  (the plan already requires execute to raise instead of returning None).
- the shared message lives in src/keep_model_loader.keep_model_pack_error.
- tests cover the unresolved pack (None and (None,)) and the raising execute.

Verified against the real ComfyUI validation path: execution.get_input_data
with a linked pack returns (None,) and validate_inputs now returns True.
2026-10-24 20:55:56 +03:00
..