mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 12:37:54 +08:00
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 |
||
|---|---|---|
| .. | ||
| llm_persona_triage.rb | ||
| llm_tagger.rb | ||
| llm_tool_triage.rb | ||
| llm_triage.rb | ||
| report_context_generator.rb | ||
| report_runner.rb | ||