Repository navigation
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.1