Pass Slack images as session context
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.
I will work on this issue
Once this is merged in, relatively easy to add slack support
https://github.com/ColeMurray/background-agents/pull/1019
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.