feat: improve Slack sharing with User Token and bot membership check#173
Merged
breaking-brake merged 3 commits intomainbreaking-brake/cc-wf-studio:mainfrom Nov 29, 2025
fix/slack-user-token-for-channel-listbreaking-brake/cc-wf-studio:fix/slack-user-token-for-channel-listCopy head branch name to clipboard
Merged
feat: improve Slack sharing with User Token and bot membership check#173breaking-brake merged 3 commits intomainbreaking-brake/cc-wf-studio:mainfrom fix/slack-user-token-for-channel-listbreaking-brake/cc-wf-studio:fix/slack-user-token-for-channel-listCopy head branch name to clipboard
breaking-brake merged 3 commits intomainbreaking-brake/cc-wf-studio:mainfrom
fix/slack-user-token-for-channel-listbreaking-brake/cc-wf-studio:fix/slack-user-token-for-channel-listCopy head branch name to clipboard
Conversation
- Add userAccessToken field to SlackWorkspaceConnection type - Store and retrieve User Token in SlackTokenManager - Use User Token for conversations.list API when available - Fall back to Bot Token for legacy connections
- Add hint text about Slack App invitation before channel selection - Remember last shared channel and auto-select on next share - Improve not_in_channel error message with detailed instructions - Remove debug logs from Slack OAuth and API services - Remove unnecessary try/catch blocks in slack-api-service 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Check if Slack App is added to channel before sharing - Show warning with /invite command if bot not in channel - Use VSCode theme colors for warning display - Add circle spinner consistent with OAuth loading - Remove redundant channel hint (replaced by dynamic check) - Support 5 languages (en, ja, ko, zh-CN, zh-TW) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Merged
github-actions Bot
added a commit
that referenced
this pull request
Nov 29, 2025
## [2.16.0](v2.15.1...v2.16.0) (2025-11-29) ### Features * improve Slack sharing with User Token and bot membership check ([#173](#173)) ([48d61b2](48d61b2))
Contributor
|
🎉 This PR is included in version 2.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Improved Slack sharing UX with the following features:
Problem
Before (Bot Token for channel listing)
channels:read/groups:readscopeschannels:read/groups:readcould potentially expose channels user hasn't joined (security concern)After (User Token for channel listing)
channels:read/groups:readscopesChanges
Token Scope Changes
channels:read,groups:readchannels:read,groups:readfiles:read(forconversations.infoAPI)New Features
1. User Token Support
slack-oauth-service.ts: Retrieve and store User Token during OAuthslack-token-manager.ts: Add methods for User Token storage/retrievalslack-api-service.ts: Use User Token for channel listing2. Bot Membership Pre-check
Since User Token change allows selecting channels without Bot, added pre-check feature:
slack-api-service.ts: AddcheckBotMembership()methodSlackShareDialog.tsx: Check Bot membership when channel is selected/invite @Claude Code Workflow Studiocommand displayed in copyable format3. Last Shared Channel Memory
SlackShareDialog.tsx: Remember workspaceId and channelId after successful shareUI Improvements
/invitecommand in code block format (easy to copy)Commits
feat: add User Token support for Slack channel listingfeat: improve Slack sharing UX with channel hint and memoryfeat: add bot membership pre-check when selecting Slack channelTesting
Related
🤖 Generated with Claude Code