background-agents icon indicating copy to clipboard operation
background-agents copied to clipboard

Pass Slack images as session context

Open primitos opened this issue 5 months ago • 3 comments

When creating a session from Slack, attached images should be passed into the session as context so the agent can inspect and answer questions about them.\n\nCurrently only channel/message context appears to be available, which means image-based Slack requests cannot be handled.

primitos avatar Jun 12 '26 20:06 primitos

I will work on this issue

Blue101black avatar Jul 08 '26 02:07 Blue101black

Once this is merged in, relatively easy to add slack support

https://github.com/ColeMurray/background-agents/pull/1019

Blue101black avatar Jul 16 '26 02:07 Blue101black

Verified as completed end-to-end.

Slack image attachments are downloaded with authenticated Slack access, validated and uploaded to the session attachment store, carried through the control plane, hydrated by the sandbox runtime, and sent to OpenCode as native image file parts. The supported paths include DMs, app mentions, interactive thread follow-ups, image-only requests, forwarded images, and repository/environment clarification.

Verification results:

  • Slack bot: 412 tests passed
  • Control-plane attachment/queue unit tests: 39 passed
  • Control-plane integration tests: 7 passed
  • Sandbox attachment tests: 6 passed

The feature is also documented in the July 23 changelog and Slack integration guide. Deployments must include the Slack bot files:read scope and reinstall the app. Generic watched-channel automation remains outside the documented image-attachment scope.

open-inspect avatar Aug 09 '26 07:08 open-inspect