Skip to content

fix(slackbot): upgrade deduped mention events - #1071

Open
decofe wants to merge 1 commit into
mainfrom
centaur/fix-slack-mention-dedupe-race-1784037322
Open

fix(slackbot): upgrade deduped mention events#1071
decofe wants to merge 1 commit into
mainfrom
centaur/fix-slack-mention-dedupe-race-1784037322

Conversation

@decofe

@decofe decofe commented Jul 14, 2026

Copy link
Copy Markdown
Member

Slack may deliver the same visible message as both message and app_mention. When the empty message callback arrives first, Chat SDK currently claims the dedupe key and drops the later actionable mention.

Patch Chat SDK dedupe state to rank mentions above non-mentions, allowing one atomic upgrade while retaining duplicate suppression. The upgrade path is serialized; normal first deliveries retain the existing set-if-absent fast path.

Adds regression coverage for both observed callback orders and asserts exactly one append/execution with attachment content preserved.

Validation:

  • pnpm --filter slackbotv2 test -- chat-sdk-emulate.test.ts (175 pass, 1 skipped)
  • pnpm --filter slackbotv2 check:types

Prompted by: @kuyziss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant