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/requests
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
..
admin FEATURE: Switch from opt-in to opt-out for categories in AI translations (#40169) 2026-05-26 14:51:04 -04:00
ai_bot SECURITY: restrict visibility of ai bot conversations 2026-05-19 00:26:04 +01:00
ai_helper FIX: Respect category tag restrictions when suggesting tags (#40545) 2026-06-04 09:11:56 +02:00
discord DEV: Restore/remove/fix/update AI-related specs (#39539) 2026-04-27 00:20:33 +02: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
sentiment SECURITY: Scope sentiment posts endpoint to allowed categories 2026-03-31 15:12:45 +01:00
summarization FIX: State-changing summary generation is exposed via GET (CSRFable navigation) (#40232) 2026-05-22 13:59:21 -03:00
translation FIX: Ensure "Translate Post" button does not silently skip bots (#38168) 2026-03-03 22:18:37 +08:00
ai_credits_controller_spec.rb DEV: Fix a flake in credit_status_checker_spec (#40092) 2026-05-16 18:46:01 +02:00
composer_controller_spec.rb FIX: Suppress composer mention warning for AI bot users (#39986) 2026-05-13 18:44:14 +02:00
mcp_oauth_controller_spec.rb FIX: Improve MCP OAuth callback error handling (#38889) 2026-03-27 07:34:24 +11:00
topic_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00