discourse/plugins/discourse-ai/lib/automation
Roman Rizzi a12f425b7e
FIX: Prevent duplicate PMs when multiple LLM triage rules flag same post (#35596)
When multiple automation rules flag the same post, users were receiving
a PM notification for each rule. Now we check if a post was already
flagged by another triage rule and skip sending additional PMs while
still creating the reviewable scores for each rule.

The changes:
- Add flagged_by_another_triage_rule? helper method to check for
existing flags from other triage rules
- Check this flag before sending author notification PMs
(plugins/discourse-ai/lib/automation/llm_triage.rb:209)
- Add comprehensive test coverage verifying only one PM is sent while
both reviewable scores are created
2025-10-24 11:10:38 -03:00
..
llm_persona_triage.rb
llm_tagger.rb FIX: use an integer, not a float, in the AI tagging automation (#34622) 2025-08-28 16:39:36 -04:00
llm_tool_triage.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
llm_triage.rb FIX: Prevent duplicate PMs when multiple LLM triage rules flag same post (#35596) 2025-10-24 11:10:38 -03:00
report_context_generator.rb DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
report_runner.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00