Repository navigation
Releases: kanryu/ComfyUI-Text-Driven-Workflows
Release list
v1.0.1: Bug Fix for Prompt Token Counter UI & Documentation Enhancement
This patch release (v1.0.1) addresses a critical regression in the newly introduced Prompt Token Counter (Text-Driven) node, restoring its stable real-time validation capabilities and completing the official repository documentation.
🐛 Bug Fixes & Regressions Resolved
Prompt Token Counter (Text-Driven) UI Restoration
- Widget Definition Rollback: Completely rolled back unnecessary layout mutations to restore the original, proven
addWidgettext-field design (token_count_display). The read-only text bar now displays and aligns exactly as intended. - Node ID
0Edge-Case Fix: Refactored the internal payload transmission logic between Python and JavaScript. The backend now securely dispatches token updates to the UI without blocking instances where the node's unique ID evaluates to0. - Real-Time Canvas Synchronicity: Fixed a breaking issue where the color-coded feedback background failed to dynamically update upon executing prompts. Color states (Green/Yellow/Red) now refresh instantly in perfect sync with the queue.
📄 Documentation & Metadata Improvements
- README Integration: Formally updated the main repository documentation, integrating the functional purpose and mechanical breakdown of the
Prompt Token Counterinto the core Workflow Guide and Included Nodes sections. - Package Manifest Standardization: Enriched the
pyproject.tomldescriptor to explicitly feature the token tracking and chunk-degradation prevention capabilities, ensuring accurate indexing for the ComfyUI Manager and ComfyUI Registry sync cycles.
⚙️ How to Update
To fetch this hotfix and sync your local deployment with the official patch, run the following commands in your extension directory, or simply trigger an update via the ComfyUI Manager:
git fetch --tags
git checkout v1.0.1v1.0.0: Initial Official Release - Layered Prompting & Real-Time Token Validation
We are thrilled to announce the official v1.0.0 release of ComfyUI-Text-Driven-Workflows!
This release establishes a production-ready ecosystem designed to streamline prompt management, introduce modular control over long prompt stacks, and integrate real-time visual safety metrics for Stable Diffusion workflows.
🚀 Key Highlights & New Innovations
1. Prompt Token Counter (Text-Driven) — New!
Never blindly cross the "75-token wall" again. This node introduces a lightning-fast, highly optimized approximation algorithm tailored for Stable Diffusion 1.5 and SDXL to monitor prompt length on every generation run.
- Canvas 2D Native Rendering: Completely bypasses brittle HTML text-box limitations. The color code is painted directly onto the node canvas, rendering seamlessly through pan and zoom cycles.
- Dynamic Traffic-Light System:
- Green (≤ 65 tokens): Safe zone. Prompt fits perfectly in the first text encoder chunk.
- Yellow (66–75 tokens): Warning zone. Approaching the physical chunk limits.
- Red (≥ 76 tokens): Critical danger zone. Visually warns that text will be sliced into downstream sections, risking degraded attention weights or image breakdown.
2. Text Line Prompt (Text-Driven) — New!
An innovative IDE-like prompt editing core that transforms multi-line prompts into a highly interactive, structural array.
- Bi-Directional Real-Time Sync: Modifying multipliers or toggling active/inactive states via the GUI dropdown menu automatically rewires and rewrites the raw text field instantly.
- Smart Muting: Deactivating specific lines automatically prepends
//to comment them out, smoothly bypassing backend execution while preserving your prompt blueprints.
📦 Complete Node Ecosystem (9 Specialized Nodes)
With this release, the suite provides a fully balanced array of 9 core nodes categorized under text-driven logic:
- Join Strings: Concatenates fragments utilizing ComfyUI V3 native Autogrow.
- Math (Int): Advanced sign-aware integer arithmetic core with zero-division safety.
- Multi Prompts: Expands or shrinks up to 10 weighted, independently-toggled prompt slots.
- Prompt Line: Seamlessly extracts array lines to drive high-performance batch generation runs.
- Prompt Token Counter: [Featured] Real-time color-coded chunk validation.
- Resolution Selector: externo aspect ratio manager with out-of-the-box SDXL presets.
- Single Prompt: Precision multiplier weighting container with standard syntax generation.
- Text Line Prompt: [Featured] Interactive multi-line string component tuning.
- Text Line Selector: Studio-grade database selector to swap massive staging and direction plans via label arrays.
⚙️ Infrastructure & Package Ecosystem Compatibility
- pyproject.toml Integration: Formally implemented standardized version metadata tracking. This repository is now fully structured for automated parsing by the ComfyUI Manager and the ComfyUI Registry systems, enabling flawless user updates going forward.
Thank you to the community and developers whose rigorous logical feedback and architectural adherence made this milestone release a bulletproof reality! Time to build smarter, text-driven workflows.