Skip to content

2.4.0: enabled passthrough toggle, prompt first so bypass passes it through - #27

Merged
EnragedAntelope merged 1 commit into
mainfrom
temp/passthrough-toggle
Nov 12, 2026
Merged

EnragedAntelope merged 1 commit into
mainfrom
temp/passthrough-toggle

Conversation

@EnragedAntelope

Copy link
Copy Markdown
Owner
  • Optional enabled toggle: off skips LM Studio and outputs prompt unchanged as response (a real on/off switch for prompt enhancers; the node is an output node, so ComfyUI runs it even when nothing downstream needs it).
  • prompt moved above system_message: a bypassed node (Ctrl+B) feeds response from the first STRING input, which used to be system_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.
  • Saves from 2.0-2.3 are remapped by name on load (migratePromptFirst, gated on the new ea_prompt_first property). 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.

…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
@EnragedAntelope
EnragedAntelope merged commit e24d484 into main Nov 12, 2026
3 checks passed
@EnragedAntelope
EnragedAntelope deleted the temp/passthrough-toggle branch November 12, 2026 03:50
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.

1 participant