0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-14 13:58:53 +08:00
discourse/plugins/discourse-ai/lib
Régis Hanol 64603110ae
FIX: Respect category tag restrictions when suggesting tags (#40545)
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
2026-06-04 09:11:56 +02:00
..
agents DEV: Extract reusable PostsFilter into core (#40436) 2026-06-02 14:52:47 +02:00
ai_bot DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
ai_helper FIX: Respect category tag restrictions when suggesting tags (#40545) 2026-06-04 09:11:56 +02:00
ai_moderation DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
ai_tool_scripts FEATURE: Add category definition filters and AI filterTopics binding (#39478) 2026-04-23 17:07:07 +10:00
automation DEV: Extract reusable PostsFilter into core (#40436) 2026-06-02 14:52:47 +02:00
completions FIX: Use standard Authorization Bearer header for vLLM (#40409) 2026-05-29 15:39:10 -03:00
configuration DEV: exercise streaming in LLM model Run Test (#39983) 2026-05-13 14:09:57 -03:00
database DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
discord/bot DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
discover DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
embeddings DEV: Tidy plugin API key scope resource names (#38640) 2026-03-17 13:03:42 +11:00
inference DEV: Make persona image tools platform agnostic (#36195) 2025-11-26 09:36:24 -08:00
inferred_concepts DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
mcp FEATURE: Add advanced OAuth options for MCP servers (#38913) 2026-04-01 08:47:23 +11:00
sentiment DEV: Let plugins exclude reports from the customisable dashboard (#40463) 2026-06-03 16:36:01 +03:00
summarization DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
tasks FEATURE: Add agent-backed sentiment classification (#40136) 2026-05-26 10:32:54 -03:00
translation FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00
utils DEV: Extract reusable PostsFilter into core (#40436) 2026-06-02 14:52:47 +02:00
ai_bot.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
automation.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
embeddings.rb
engine.rb DEV: Add DiscourseAi.register_feature public API (#39127) 2026-05-12 10:16:07 +08:00
guardian_extensions.rb DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
multisite_hash.rb
post_extensions.rb
summarization.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
topic_extensions.rb FEATURE: Star AI bot conversations in sidebar (#39869) 2026-05-14 15:04:31 +10:00
translation.rb FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00