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/spec/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: Allow multiple solutions in solved plugin (#39806) 2026-05-28 07:12:28 -05:00
automation FEATURE: extract text from document uploads for LLM prompts (#39634) 2026-05-05 08:16:23 +10:00
completions FIX: AI: AWS Bedrock Converse image uploads were doubly base64-encoded (#39880) 2026-05-26 15:16:49 -03:00
discord/bot DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
discourse_automation DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
discourse_workflows/nodes FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
inference FEATURE: Add support for matryoshka in Gemini embeddings (#34145) 2025-08-07 15:35:08 -03:00
inferred_concepts DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
mcp FEATURE: Add advanced OAuth options for MCP servers (#38913) 2026-04-01 08:47:23 +11:00
modules FIX: Respect category tag restrictions when suggesting tags (#40545) 2026-06-04 09:11:56 +02: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
guardian_extensions_spec.rb SECURITY: Force regeneration for edit-outdated summaries and block stale fallback 2026-03-31 15:12:45 +01:00