Skip to content

fix(discord): deduplicate directory peers across guilds - #120797

Merged
steipete merged 1 commit into
mainfrom
codex/qa-discord-directory-global-peer-identity
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-discord-directory-global-peer-identity

Conversation

@steipete

@steipete steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Discord user identifiers are globally stable, but the live peer directory appended the same user once for every guild membership. Duplicate entries consumed the requested result limit, hid other real users, and could make a single person appear to be an ambiguous target.

Deduplicate peers by their canonical Discord user identifier after recording each guild-specific nickname and before applying the unique-result limit. This preserves all existing guild aliases while returning each real person only once.

The plugin-owned change adds five production lines for the explicit global identity boundary and changes no authentication, configuration, or public API.

Verification

  • Tests-only actual production HTTP-fetch proof reproduced two failures for one user appearing in multiple guilds while five existing controls passed.
  • The final directory, account-cache, target-resolution, and channel-contract suites pass all 33 tests.
  • The complete remote changed gate passes formatting, production/test typechecks, zero-warning lint, and all plugin, ownership, and runtime guards.
  • Independent direct dependency-contract review, exact immutable-source review, and fresh structured code review found no actionable issues.

@steipete
steipete marked this pull request as ready for review August 9, 2026 00:41
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: S maintainer Maintainer-authored PR labels Aug 9, 2026
@steipete
steipete merged commit 23f36d2 into main Aug 9, 2026
169 of 171 checks passed
@steipete
steipete deleted the codex/qa-discord-directory-global-peer-identity branch August 9, 2026 00:55
@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:
  fix(discord): deduplicate directory peers across guilds (#120797)
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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant