Skip to content

fix(discord): remove only the bot own reactions - #120785

Merged
steipete merged 1 commit into
mainfrom
codex/qa-discord-own-reaction-identity
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-discord-own-reaction-identity

Conversation

@steipete

@steipete steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Clearing a bot's Discord reactions also attempted self-removal for emoji added only by other users and could falsely report those unrelated reactions as removed.

Why This Change Was Made

The Discord reaction owner now uses the upstream reaction object's existing current-user ownership field instead of casting that information away. Connected duplicate narrowing casts were removed from the same owner while preserving emoji normalization, deduplication, retry behavior, and failure propagation.

User Impact

Reaction removal targets only emoji actually used by the bot, reports accurate results, and avoids unnecessary Discord API requests when the bot has no matching reactions.

Evidence

  • Tests against the actual mocked Discord REST owner reproduced two incorrect mixed-ownership and no-owned-reaction cases while retry controls passed.
  • The final complete owner suite passes all 72 tests, including Unicode and custom emoji, duplicate reactions, retry handling, and transport failures.
  • The complete remote changed-file gate and fresh structured review both pass without findings.
  • An independent review verified the upstream typed reaction contract and the existing self-removal API route.
  • Production code shrinks by seven lines; configuration, authentication, public interfaces, and unrelated users' reactions are unchanged.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: XS maintainer Maintainer-authored PR labels Aug 9, 2026
@steipete
steipete marked this pull request as ready for review August 9, 2026 00:08
@steipete
steipete merged commit 5439732 into main Aug 9, 2026
171 checks passed
@steipete
steipete deleted the codex/qa-discord-own-reaction-identity branch August 9, 2026 00:21
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 9, 2026
Punchcard-Session: amber-workshop-workshop-36

* origin/main: (28 commits)
  perf(doctor): keep bundled doctor contract closures dependency-light (#120698)
  fix(elevenlabs): preserve repeated committed speech segments (#120792)
  fix(ai): fence Responses replay metadata (#120777)
  fix(ai): invalidate stale compaction replay (#120786)
  fix(telegram): clean up every failed webhook startup phase (#120788)
  fix(codex): preserve configured MCP tools in scheduled turns (#120366)
  fix(ui): show dev checkout commit lag in Updates (#120769)
  fix(agents): repair XML-polluted tool names (#113814)
  fix(discord): remove only the bot own reactions (#120785)
  fix(macos): complete ChatGPT subscription setup (#120782)
  fix(plugins): surface safe administrator install warnings (#120783)
  fix(release): keep upgrade survivor sessions fresh (#120778)
  fix(providers): preserve realtime tool-result delivery ownership (#120776)
  fix(plugins): retain incognito scope for embedded session ownership (#120215)
  fix(elevenlabs): surface realtime provider error events (#120772)
  fix(agents): preserve exact steering delivery ownership (#120770)
  fix(telegram): prevent session-count routing slowdown (#120774)
  fix(agents): preserve authoritative background process outcomes (#120754)
  test(process): make Linux adapter wiring portable (#120741)
  fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant