thgl
(Thomas Glaser)
June 3, 2026, 1:22pm
1
I’ve noticed that the AI Helper for suggesting tags can make recommendations that are not allowed within the selected category.
For example here, I am attempting to post to a category that doesn’t allow the question/discussion tags:
I can in fact even select it, but not submit it:
If I attempt to add the same tag manually, it is correctly identified as restricted:
Expected Behavior
I think it makes more sense if AI Helper would respect the restrictions of the tags / tag groups, and only suggest those allowed within the currently selected category.
2 Likes
Thanks for the report @thgl - I’ll have a look
3 Likes
It’ll be fixed once this gets reviewed , merged , and deployed
main ← fix-ai-tag-suggestions-category-restrictions
opened 04:04PM - 03 Jun 26 UTC
Previously, the AI helper's tag suggester could recommend tags the selected cate… gory doesn't allow — it filtered candidates only by tag visibility and was never told the composer's category, so a user could pick a suggestion they then couldn't submit (while adding the same tag manually was correctly blocked).
This change routes the suggested tags through the same `DiscourseTagging.filter_allowed_tags` rules the tag chooser and topic-save validation use, scoped to the selected category and already-selected tags, so only submittable tags are suggested.
Meta: https://meta.discourse.org/t/ai-helper-can-suggest-tags-not-allowed-in-category/404423
3 Likes
thgl
(Thomas Glaser)
June 3, 2026, 4:08pm
5
Wow, that was a quick fix Thank you
1 Like