Skip to content

fix(slack): multipart receipts misclassify overflow text as media - #129089

Merged
steipete merged 1 commit into
mainfrom
codex/slack-multipart-receipt-kind-20260824
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/slack-multipart-receipt-kind-20260824

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Slack messages containing an uploaded file followed by an overflow-caption text message incorrectly reported both delivered parts as media, losing the true text delivery type in the final receipt.

Why This Change Was Made

Build the aggregate Slack receipt from the existing authoritative per-message delivery results instead of guessing every part's kind from the overall request. Preserve ordered part indexes, the canonical delivered thread, native cards, and reconciliation metadata.

User Impact

Slack delivery receipts now accurately distinguish uploaded files, follow-up text, and native interactive content while preserving existing threading and recovery behavior.

Evidence

  • An existing localhost Slack upload flow reproduced the failure before the fix: per-message callbacks correctly reported [media, text], while the aggregate receipt incorrectly reported [media, media].
  • After the fix, node scripts/run-vitest.mjs extensions/slack/src/send.upload.test.ts extensions/slack/src/send.blocks.test.ts extensions/slack/src/send.reconcile.test.ts extensions/slack/src/monitor/replies.test.ts passes all 169 tests.
  • Focused formatting, lint, independent owner-boundary review, and structured review pass. The canonical sender repair removes three net production lines; no external Slack account or user channel was contacted.

@clawsweeper

clawsweeper Bot commented Aug 25, 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: slack Channel integration: slack size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 07:09
@steipete
steipete merged commit d2ac0e3 into main Aug 25, 2026
169 checks passed
@steipete
steipete deleted the codex/slack-multipart-receipt-kind-20260824 branch August 25, 2026 07:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

channel: slack Channel integration: slack maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant