Repository navigation
feat(discord): add implicit reply mention policy - #80235
JiehoonKwak wants to merge 5 commits into
Conversation
|
Codex review: found issues before merge. Reviewed July 3, 2026, 11:47 PM ET / 03:47 UTC. Summary PR surface: Source +51, Tests +187, Docs +24, Generated 0. Total +262 across 11 files. Reproducibility: yes. at source level: current main emits Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Accept the Discord policy only after maintainer API approval, preserve account/default inheritance for partial Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main emits Is this the best way to solve the issue? No, not as submitted. The policy is a plausible narrow fix if maintainers accept the config API, but the best merge shape must preserve partial account/default inheritance and be refreshed against main. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9d68f877ac3e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +51, Tests +187, Docs +24, Generated 0. Total +262 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
1e68c18 to
99deac3
Compare
…-reply-mentions-policy # Conflicts: # CHANGELOG.md # docs/.generated/config-baseline.sha256
|
Real Discord behavior proof from a private multi-bot test channel:
While doing the live test I found one Discord API wrinkle that the original unit-only version missed: native replies can include the replied-to bot in Local verification after the update:
I also merged current Re-review progress:
|
…-reply-mentions-policy # Conflicts: # docs/.generated/config-baseline.sha256 # src/config/bundled-channel-config-metadata.generated.ts
|
Addressed the ClawSweeper finding:
Local verification after the update:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg ✨ Hatched: 💎 rare Gilded Crabkin Hatch commandComment Hatchability rules:
Rarity: 💎 rare. What is this egg doing here?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(discord): add implicit reply mention policy This is item 1/1 in the current shard. Shard 9/22. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing due to inactivity. |
Closes #80234.
Adds
channels.discord.implicitReplyMentions:Defaults preserve current behavior. Multi-bot deployments can set
fromBots: falseso bot-authored native replies do not wake another bot via the implicitreply_to_botpath; explicit<@botId>mentions still work.Checks run:
pnpm exec vitest run extensions/discord/src/monitor/message-handler.preflight.test.ts --maxWorkers=1pnpm config:schema:checkpnpm config:docs:checkpnpm check:bundled-channel-config-metadatagit diff --checkReal behavior proof
Behavior or issue addressed: Discord native reply-only mentions can wake an OpenClaw bot when another bot replies to one of its messages. This PR adds a policy knob so deployments can keep human reply activation while disabling bot-authored reply-only activation.
Real environment tested: Private Discord server with a private test channel and two OpenClaw Discord bot accounts. Server, channel, bot names, message IDs, and account IDs are intentionally omitted from this public proof.
Exact steps or command run after this patch:
<@bot>mention.implicitReplyMentions: { fromUsers: true, fromBots: false }.<@bot>mention and asks the target bot to reply with a known marker.Evidence after fix: Redacted live output excerpt from the private Discord test channel:
Observed result after fix: With
fromBots:false, the bot-authored native reply-only message did not wake the target bot during the observation window. A real textual explicit mention still woke the target bot and produced the requested marker response.What was not tested: Human-authored reply-only behavior was covered by unit tests but not repeated in the live Discord proof. PluralKit behavior was covered by unit tests but not repeated in the live Discord proof.