Repository navigation
Don't answer @ai questions that get a badword warning - #5
Merged
Merged
Conversation
"@ai anjing" got a badword warning and was still answered by the AI. A question that is counted is no longer answered. With /abt ai on, a question with only ambiguous words is judged by the AI right away and the reviewer is told it is a question to the assistant: asking about a word is answered, insulting someone in the question is counted and not answered. If the reviewer fails, the question is not counted and is answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
@ai anjingin a channel got a badword warning by PM, while the AI still answered the question in the channel.Change
@aiquestion that is counted as a badword is not answered (nothing is posted in the channel; the usual warning PM is sent)./abt ai on, a question with only ambiguous words (@ai anjing) is judged by the AI reviewer right away (no 8 s wait for follow-ups), with the earlier messages as context, and the reviewer is told the message is a question to the assistant:ok→ not counted, answeredinsult(e.g.@ai budi itu monyet ya) → counted, not answered@ai apa arti kontol) are counted at once and not answered.ai_review.py: prompt rule + two worked examples for questions to the assistant;format_message(..., to_assistant=True)adds a note line.tools/ai_eval.py: 4@aiquestion cases (42 total)./help ai,docs/ai.md, CHANGELOG updated.Testing
BADWORDS_IGNORE_ADMINS,@aisyah,@aiin a PM, ordinary messages still waiting for follow-ups.🤖 Generated with Claude Code