Skip to content

Fix Slack image upload: scope, WS limit, error propagation#32

Merged
DorianZheng merged 1 commit intomainfrom
fix/slack-image-upload
Mar 20, 2026
Merged

Fix Slack image upload: scope, WS limit, error propagation#32
DorianZheng merged 1 commit intomainfrom
fix/slack-image-upload

Conversation

@DorianZheng
Copy link
Copy Markdown
Collaborator

Summary

  • Add missing files:write scope to the copy-manifest button in settings UI
  • Raise WebSocket maxPayload from default 1 MB to 16 MB so base64-encoded images can pass through the RPC transport
  • Make sendImageToSlack propagate errors to the RPC caller instead of silently returning { ok: true }

Test plan

  • Copy manifest from settings, verify files:write is included in scopes
  • Upload an image >1 MB via slack-send-image.sh and confirm it arrives in Slack
  • Trigger a Slack upload error (e.g. disconnect Slack) and verify the RPC returns an error, not { ok: true }

…ate errors

- Add files:write to the copy-manifest scopes in settings UI
- Raise WebSocket maxPayload to 16 MB so base64-encoded images are not
  rejected by the ws library's default 1 MB limit
- Make sendImageToSlack propagate errors instead of silently swallowing
  them, so the RPC caller gets a real failure instead of { ok: true }
@DorianZheng DorianZheng merged commit 9ef78a9 into main Mar 20, 2026
1 check failed
@DorianZheng DorianZheng deleted the fix/slack-image-upload branch March 20, 2026 12:47
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