feat(slack_app): request files:read scope so the bot can download attachments - #73568
Merged
Conversation
…achments Without files:read, Slack answers the url_private download with an HTTP 200 HTML interstitial instead of the file bytes. The attachment download path rejects that HTML and skips the file, so image and file attachments never reach the agent. Add files:read to SlackIntegrationScopeInReview so it is requested in DEV and local DEBUG installs (where the Slack app manifest can list in-review scopes), without tripping invalid_scope on US/EU Cloud until Slack approves it.
Contributor
🦔 Hogbox preview · ✅ ready▶ Open the preview
commit |
VojtechBartos
enabled auto-merge (squash)
July 24, 2026 15:50
cvolzer3
approved these changes
Jul 24, 2026
Contributor
|
Reviews (1): Last reviewed commit: "feat(slack_app): request files:read scop..." | Re-trigger Greptile |
Contributor
🤖 CI report |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Mentioning the bot with an image or file attached fails: it replies that the attachment "failed to download from Slack." The install never requests
files:read, so the bot token can't read files. Slack returns an HTML interstitial instead of the bytes, the download path rejects it, and the attachment is skipped.Changes
Add
files:readtoSlackIntegrationScopeInReview(infrontend/src/types.ts) and regenerate the schema. In-review scopes are only requested in DEV/DEBUG, so this avoidsinvalid_scopeon Cloud until Slack approves the public app.Note
Also requires adding
files:readto the DEV Slack app manifest and reconnecting the integration to grant it.🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Vojta reported the bug and asked me (Claude) to investigate and open this PR.