Suggested tags should only be created if accepted

Created on 18 July 2025, about 1 month ago

Problem/Motivation

Currently when using the tags Form Widget Action as demonstrated in this video, suggested new terms are created as soon as the LLM response is received. This is not necessary, since terms that lack a tid value in brackets after the name will be created automatically anyway. Furthermore, this will create noise in the tags vocabulary by creating terms that may not be relevant to the site and its content, or are duplicates of terms in other vocabularies.

Steps to reproduce (required for bugs, but not feature requests)

Create a setup of a content type with a tags field and add the form widget action as in the video. Populate text in the source field, and observe that before even saving the node, the tag suggestions all have a tid value in brackets after the name. Don't save the node and go to the terms list for the tags vocabulary. Observe that the suggested tags are in the vocabulary even though the content was never created.

Proposed resolution

When suggesting new tags, just put them into the autocomplete as comma-separated terms. The user can remove any they don't want, and any left in the tags-style autocomplete will be created automatically.

🐛 Bug report
Status

Active

Version

1.2

Component

...to be triaged

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024