ComfyUI/app
chinesewebman 8429f4ff85 fix: skip non-dict entries in UI-saved prompt JSON
UI-saved workflow JSON stores non-dict metadata keys at the top level
(e.g. 'last_node_id', 'last_link_id' as ints). Both validate_prompt and
NodeReplaceManager assume every value is a dict, so iterating prompt.items()
crashes with TypeError when these keys are present.

This is a regression from PR #12595 which tried to fix the same issue but
only added 'class_type' check without guarding isinstance.

Affected endpoints: /prompt (API submit of UI-saved workflow), and any
internal call to validate_prompt / node_replace_manager.

Reproducer: open ComfyUI in browser, save workflow (Ctrl+S), then submit
via API POST /prompt with that JSON. Previously: 500 TypeError.
After: 200 OK (int keys skipped silently).

Repro platform-independent (NVIDIA/CUDA users hit it too).
2026-07-05 17:54:38 +08:00
..
assets security: fix four vulnerabilities (GHSA-779p-m5rp-r4h4) (#14734) 2026-07-02 20:44:54 -07:00
database feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
__init__.py Add FrontendManager to manage non-default front-end impl (#3897) 2024-07-16 11:26:11 -04:00
app_settings.py Update frontend to v1.25.10 and revert navigation mode override (#9522) 2025-08-23 17:54:01 -04:00
custom_node_manager.py Remove useless annotations imports. (#14105) 2026-05-25 19:23:29 -07:00
frontend_management.py Remove useless annotations imports. (#14105) 2026-05-25 19:23:29 -07:00
logger.py Add colored logs (#14036) 2026-05-25 10:00:55 +08:00
model_manager.py security: fix four vulnerabilities (GHSA-779p-m5rp-r4h4) (#14734) 2026-07-02 20:44:54 -07:00
node_replace_manager.py fix: skip non-dict entries in UI-saved prompt JSON 2026-07-05 17:54:38 +08:00
subgraph_manager.py fix: specify UTF-8 encoding when reading subgraph files (#12563) 2026-02-21 15:05:00 -08:00
user_manager.py security: fix four vulnerabilities (GHSA-779p-m5rp-r4h4) (#14734) 2026-07-02 20:44:54 -07:00