ComfyUI-Autocomplete-Plus icon indicating copy to clipboard operation
ComfyUI-Autocomplete-Plus copied to clipboard

Autocomplete Plus does not attach to prompt textarea in ComfyUI Desktop / new frontend

Open ShanJingbo opened this issue 6 months ago • 0 comments

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() and setup()
  • add fallback listeners for focusin and pointerdown
  • wait for document.body / DOMContentLoaded before creating UI roots
  • lazily create AutocompleteUI and RelatedTagsUI
  • 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.

ShanJingbo avatar May 28 '26 14:05 ShanJingbo