mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-08 23:47:24 +08:00
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). |
||
|---|---|---|
| .. | ||
| assets | ||
| database | ||
| __init__.py | ||
| app_settings.py | ||
| custom_node_manager.py | ||
| frontend_management.py | ||
| logger.py | ||
| model_manager.py | ||
| node_replace_manager.py | ||
| subgraph_manager.py | ||
| user_manager.py | ||