Repository navigation
2.4.0: enabled passthrough toggle, prompt first so bypass passes it through - #27
Merged
Merged
Conversation
…hrough - Add optional `enabled` BOOLEAN; off returns prompt as response without contacting LM Studio - Move `prompt` above `system_message` so a bypassed node feeds response from the prompt - Frontend: migratePromptFirst remaps 2.0-2.3 widgets_values by name (V2_ORDER table, ea_prompt_first property) - Share remapByName between the v1 and 2.x migrations - Update example workflows to the new order - Tests for passthrough, prompt-first order and the V2_ORDER table - README and AGENTS.md notes; bump to 2.4.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
enabledtoggle: off skips LM Studio and outputspromptunchanged asresponse(a real on/off switch for prompt enhancers; the node is an output node, so ComfyUI runs it even when nothing downstream needs it).promptmoved abovesystem_message: a bypassed node (Ctrl+B) feedsresponsefrom the first STRING input, which used to besystem_message. Now bypass passes the connected prompt into a STRING target like CLIP Text Encode. A*target (Preview Any) still gets nothing (frontend maps it to slot 0 = image1), hence the toggle.migratePromptFirst, gated on the newea_prompt_firstproperty). API-format prompts need no change.QA: pytest + pyflakes green. Browser-checked on a scratch ComfyUI (frontend 1.57.6): new node layout, 2.3-shaped save loads with every value on the right widget (and its saved input order is re-sorted), v1 save still migrates, bypass into CLIP Text Encode passes the user's text, and an enabled=false run returns the prompt with LM Studio untouched.