Skip to content

fix(slack): let bots resend attachments to the requested thread - #1489

Merged
nixuuu merged 1 commit into
devfrom
fix/slack-bot-attachment-sending
Nov 29, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/slack-bot-attachment-sending

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026

Copy link
Copy Markdown
Member

When Slack refused a reply with files, the bot could list the attachment ID returned by its first send. Reusing that ID in the same Slack thread failed because the gateway looked only at files referenced by messages. It now also resolves files queued for replies in that conversation and context epoch.

A private bot turn can also pass its conversation attachment IDs to the granted Canopy Slack posting tool, including files received from a delegated thread. The bot can send a file-only reply to a specific parent timestamp. The Slack adapter shares the files after uploading all of them. Existing account and channel approval rules apply.

Fixes: #1423

Verification

  • Reproduced a refused delivery followed by an explicit retry in the same thread. Verified the file digest and destination, and rejection of that ID in another thread of the same channel.
  • Verified exact file bytes and parent timestamp using the private bot entry point with a real gateway and worker and a local Slack transport. A different private chat's file was refused before upload.
  • The focused messenger-origin suite (16 tests), Slack post approval suite (2 tests), Slack file adapter suite (2 tests), gateway typecheck and lint on changed files passed locally. The full gate runs in CI. Live Slack installation and delivery were not exercised.

Copy audit

A file-only post now confirms the file count after Slack accepts the share. Approval cards include filenames and sizes alongside the destination. Reviewed against docs/copy.md §8.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 19:56
@nixuuu
nixuuu merged commit 320b24d into dev Nov 29, 2026
45 of 47 checks passed
@nixuuu
nixuuu deleted the fix/slack-bot-attachment-sending branch November 29, 2026 20:09
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