fix(discord): notify owners on blocking prompts - #82982
Open
doryani-ai wants to merge 1 commit into
Open
Conversation
19 tasks
Extend the existing opt-in approval mention policy to slash confirmations, clarification questions, and update prompts. Keep mentions profile-scoped under multiplexing and bounded within Discord's content limit. Co-authored-by: nanobro <38958450+nanobro@users.noreply.github.com>
doryani-ai
force-pushed
the
fix/discord-blocking-prompt-mentions
branch
from
August 18, 2026 03:09
2d05a20 to
c18463b
Compare
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.
Summary
Discord blocking prompts can now opt in to mentioning numeric allowlisted owners, so an agent waiting in a quiet channel or thread produces a native notification instead of silently stalling.
This is a current-
mainsalvage of #47342 by @nanobro. It preserves that PR's four-prompt scope while incorporating the July review feedback: no Discord-only kwargs cross the generic gateway contract, mentions live in the plain content mirror, and delivery uses the existing opt-indiscord.approval_mentionsmechanism with scopedAllowedMentions.Changes
discord.approval_mentionsfrom exec approvals to:clarifyquestions (button and open-ended paths)discord.allow_from@everyone, replied-user, and non-owner user pings disabled bypassing the exact numeric owner objects to Discord's
AllowedMentionsthe documented env-over-config precedence in single-profile mode
2,000-character content budget
Validation
content-budget, content-mirror, clarify, allowed-mentions, approval-content,
and timeout coverage
ruff checkpassed for the changed Python filesPrior art
No issue is closed: the exact existing contribution is #47342.