mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 13:58:53 +08:00
Previously, the AI helper's tag suggester could recommend tags the selected category 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 |
||
|---|---|---|
| .. | ||
| admin | ||
| ai_bot | ||
| ai_helper | ||
| discord | ||
| discover | ||
| embeddings | ||
| sentiment | ||
| summarization | ||
| translation | ||
| ai_credits_controller_spec.rb | ||
| composer_controller_spec.rb | ||
| mcp_oauth_controller_spec.rb | ||
| topic_spec.rb | ||