Skip to content

feat(slack): import attachments into bots and threads - #987

Merged
nixuuu merged 1 commit into
devfrom
feat/slack-attachments
Nov 18, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/slack-attachments

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 18, 2026

Copy link
Copy Markdown
Member

Changes

  • Carry Slack file IDs through durable Socket Mode intake. File-bearing messages enter a fresh bot turn with the existing native attachment pipeline, including images, while unavailable files leave the message text usable.
  • Add a read-only Slack connector file download for bots and agent threads. Bots can inspect the file and pass its attachment ID to an agent thread. A thread can download directly and receives a verified local path within its scoped attachment store.
  • Use Slack's own file metadata and authenticated download, owner-scoped grants, current source and turn authorization, bounded byte reads, and immutable blob storage. Older workers need the new capability for connector downloads. Existing Slack app installations need bot files:read and renewed Messages authorization for automatic intake.

Verification

  • 94 focused tests passed, covering Socket Mode delivery, connector downloads, forwarding, revoked grants, transport origin and size checks, worker attachment handling, and the PostgreSQL migration.
  • Gateway and worker typechecks passed. Scoped lint and formatting passed. WorkerLink contracts were regenerated.
  • Live Slack workspace and model-provider checks are pending. Required GitHub CI runs the full gate.

Copy audit

  • An incoming file previously had no delivery feedback. The model now receives “Some Slack attachments were unavailable” when needed, without exposing account details to external participants.
  • Direct connector errors name the reason and available action when known. No UI layouts, controls, empty states, or language relying on visual cues changed.

@nixuuu
nixuuu enabled auto-merge (squash) November 18, 2026 19:23
@nixuuu
nixuuu force-pushed the feat/slack-attachments branch from aac4a3c to e8a555b Compare November 18, 2026 19:24
@nixuuu
nixuuu merged commit d6ffe40 into dev Nov 18, 2026
15 checks passed
@nixuuu
nixuuu deleted the feat/slack-attachments branch November 18, 2026 19:32
nixuuu added a commit that referenced this pull request Nov 18, 2026
The Slack PNG was stored correctly, but the bot catalog declared the
configured Codex model text-only. Codex removed the image block from the
tool result before inference. Keep an advertised image modality and
follow Codex's text-and-image default when modality metadata is absent.
Explicitly text-only models retain their declared limit. Bot tool
isolation remains in force.

## Verification

- The official Codex app-server test runs against a local Responses
endpoint and verifies both a user-uploaded image and an image fetched by
the bot's connector in the outgoing inference requests.
- Catalog and isolation tests passed locally. Worker typecheck and
scoped lint passed.
- Required CI covers the repository gate. The production Slack read will
be verified after the corrected Nightly is installed.

Fixes: #185
Related: #987
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