Skip to content

fix(discord): record activity after successful poll and sticker sends - #126791

Merged
steipete merged 2 commits into
mainfrom
codex/autoqa-discord-structured-activity-20260820
Aug 20, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/autoqa-discord-structured-activity-20260820

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users sending Discord polls or stickers would see stale outbound channel activity, even though Discord successfully delivered their messages. This made Discord account health and last-outbound status disagree with actual successful activity.

Why This Change Was Made

The Discord plugin already records successful text, media, component, webhook, and voice sends, but poll and sticker delivery duplicated their send-completion logic without reporting the same authoritative activity fact. Both structured-message senders now share one account-aware completion owner that records activity only after successful platform delivery.

User Impact

Discord poll and sticker sends now update the correct account's last-outbound activity, including explicit normalized account IDs and configured default accounts. Failed sends remain unrecorded, and existing dispatch hooks, nonce protection, receipt types, thread identity, and content behavior remain unchanged.

Evidence

  • Six authentic account-bound poll/sticker activity regressions fail against the original implementation and pass with the fix.
  • Both poll and sticker failure paths prove rejected platform sends never record successful outbound activity.
  • All 14 focused Discord outbound activity tests pass.
  • Production delta: +24/-24 (net zero); regression tests: +76/-1.
  • Independent owner-boundary review found no actionable issues.
  • Live Discord account proof is unavailable in this isolated checkout; deterministic tests drive the real plugin sender and Discord REST request boundaries instead.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: S maintainer Maintainer-authored PR labels Aug 20, 2026
@steipete
steipete marked this pull request as ready for review August 20, 2026 18:44
@steipete
steipete merged commit 2314059 into main Aug 20, 2026
220 checks passed
@steipete
steipete deleted the codex/autoqa-discord-structured-activity-20260820 branch August 20, 2026 18:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
…openclaw#126791)

* fix(discord): record activity for structured outbound messages

* chore(discord): shrink structured-send assertion baseline
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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant