Skip to content

Better handle prompt extraction in new workflows - #538

Merged
jamesmoore merged 3 commits into
mainfrom
better-handle-new-workflows-prompt-extraction
Aug 15, 2026
Merged

Better handle prompt extraction in new workflows#538
jamesmoore merged 3 commits into
mainfrom
better-handle-new-workflows-prompt-extraction

Conversation

@jamesmoore

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates ComfyUIParameterDecoder to better extract prompts from newer ComfyUI workflow JSON formats by refactoring node-based prompt extraction and adding a fallback prompt extraction strategy.

Changes:

  • Refactors prompt/model extraction into GetPromptsFromNodes(...).
  • Adds a fallback prompt extraction (ExtractLongStringPrompt / CollectLongStrings) when node-based prompt extraction yields an empty prompt.
  • Broadens CLIP text node text fields to object and centralizes text extraction in GetTextValue(...).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread SDMeta/ComfyUI/ComfyUIParameterDecoder.cs
Comment thread SDMeta/ComfyUI/ComfyUIParameterDecoder.cs
@jamesmoore jamesmoore changed the title Better handle new workflows prompt extraction Better handle prompt extraction in new workflows Aug 15, 2026
@jamesmoore
jamesmoore force-pushed the better-handle-new-workflows-prompt-extraction branch from d796acd to db73550 Compare August 15, 2026 07:14
@jamesmoore
jamesmoore marked this pull request as ready for review August 15, 2026 07:17
@jamesmoore
jamesmoore merged commit cda6152 into main Aug 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants