ComfyUI-Autocomplete-Plus
ComfyUI-Autocomplete-Plus copied to clipboard
Autocomplete Plus does not attach to prompt textarea in ComfyUI Desktop / new frontend
Environment
- OS: Windows 11
- ComfyUI Desktop: 1.43.18
- ComfyUI: 0.22.3
- Python: 3.12.11
- Extension: ComfyUI-Autocomplete-Plus
- pysssss.AutoCompleter: disabled
Problem
Autocomplete Plus backend loads successfully and /autocomplete-plus/csv reports Danbooru CSV data is available, but the autocomplete popup does not appear in prompt textareas in ComfyUI Desktop.
The plugin seems to fail to attach to the actual textarea element in the current ComfyUI Desktop/new frontend.
Expected behavior
When typing in a positive/negative prompt textarea, Autocomplete Plus should show suggestions.
Actual behavior
No popup appears, even though the backend and CSV API are working.
Notes
In my local test, the issue was resolved by making the frontend attachment more robust:
- resolve the real textarea from
widget.element,widget.inputEl, wrapper query, or event target - initialize event handlers in both
init()andsetup() - add fallback listeners for
focusinandpointerdown - wait for
document.body/DOMContentLoadedbefore creating UI roots - lazily create
AutocompleteUIandRelatedTagsUI - increase popup z-index for the Desktop frontend
This suggests the issue is frontend compatibility with the current ComfyUI Desktop/new frontend rather than a backend loading failure.