Skip to content

Fix Slack request images before bare mentions - #49446

Draft
brennanb2025 wants to merge 18 commits into
mainfrom
brennanb2025/wrong-picture-625
Draft

brennanb2025 wants to merge 18 commits into
mainfrom
brennanb2025/wrong-picture-625

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When someone shares a picture and then tags a bot in a separate message, the bot receives the picture in its chat. Before, it could miss the picture and act on an unrelated file left in a temporary folder.

Files Added Deleted Net
Test 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1058 $\color{#cf222e}{\Huge{\mathbf{−}}}$​41 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1017
Prod 51 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2041 $\color{#cf222e}{\Huge{\mathbf{−}}}$​591 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1450

What Changed

  • Attach up to four distinct Slack images. Images on the tag come first, followed by the newest earlier images from the requester.
  • Let interrupted attachment preparation retry. Preserve returned requests within the chat's image limits and show the asker's message with its pictures.

Why

The tag message alone does not carry the earlier upload. Delivering its bytes with the request gives the bot the image through the same attachment flow used for an image on the tag.

Linked Issue

N/A

Visual Proof

Seeded desktop screenshot pending.

Testing

Focused connector tests and seeded desktop validation are pending on this revision.

Performance

Up to four distinct image reads share a ten-second staging budget. Recovery inspects at most twenty existing attachment paths per delivery, across retries and skips already attached Slack files before download.

Risk

Level: Medium. The delivery receipt and returned-request path determine whether interrupted messages can safely retry. A revert restores the previous behavior. Existing chats use the same attachment block format.

AI Disclosure

N/A

Review

  • Agent skill upstream boundary is not applicable.

Notes

Attachment storage stays on the chat's host. The transcript projection is shared with mobile.

Checklist

  • Problem, change, and risk described
  • Seeded screenshot and final checks complete

This branch has not been deployed

No deployments
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