Skip to content

Add test coverage for ExtractLongStringPrompt fallback path in ComfyUIParameterDecoder - #539

Merged
jamesmoore merged 2 commits into
better-handle-new-workflows-prompt-extractionfrom
copilot/fix-review-comment-538
Aug 15, 2026
Merged

Add test coverage for ExtractLongStringPrompt fallback path in ComfyUIParameterDecoder#539
jamesmoore merged 2 commits into
better-handle-new-workflows-prompt-extractionfrom
copilot/fix-review-comment-538

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

The ExtractLongStringPrompt fallback (used when CLIP node extraction yields no prompt) had no test coverage, leaving it unprotected against regressions.

Changes

  • New test GetParams_FallsBackToExtractLongStringPrompt_WhenNoClipNodes — exercises the fallback path using a workflow with no CLIPTextEncode nodes but a long string value (>100 chars) embedded in a custom node's inputs
  • New fixture testJsonWithLongStringFallback — minimal ComfyUI workflow JSON that bypasses CLIP-based extraction and forces the ExtractLongStringPrompt code path

Copilot AI changed the title [WIP] Fix code based on review comment 3788774555 Add test coverage for ExtractLongStringPrompt fallback path in ComfyUIParameterDecoder Aug 15, 2026
Copilot AI requested a review from jamesmoore August 15, 2026 07:09
@jamesmoore
jamesmoore marked this pull request as ready for review August 15, 2026 07:12
jamesmoore and others added 2 commits August 15, 2026 08:14
…rDecoderTest

Co-authored-by: jamesmoore <6506748+jamesmoore@users.noreply.github.com>
@jamesmoore
jamesmoore force-pushed the copilot/fix-review-comment-538 branch from d04e074 to c89dd7c Compare August 15, 2026 07:14
@jamesmoore
jamesmoore merged commit 62a5b6e into main Aug 15, 2026
7 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