fix: improve Slack import error handling and add files:read scope#169
Merged
breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom Nov 29, 2025
fix/slack-import-workspace-not-connected-error-dialogbreaking-brake/cc-wf-studio:fix/slack-import-workspace-not-connected-error-dialogCopy head branch name to clipboard
Merged
fix: improve Slack import error handling and add files:read scope#169breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom fix/slack-import-workspace-not-connected-error-dialogbreaking-brake/cc-wf-studio:fix/slack-import-workspace-not-connected-error-dialogCopy head branch name to clipboard
breaking-brake merged 2 commits intomainbreaking-brake/cc-wf-studio:mainfrom
fix/slack-import-workspace-not-connected-error-dialogbreaking-brake/cc-wf-studio:fix/slack-import-workspace-not-connected-error-dialogCopy head branch name to clipboard
Conversation
- Add workspaceName parameter to Slack message card deep links (Base64 encoded) - Display workspace name instead of workspace ID in error dialogs - Pass workspaceName through import flow from URI to dialog - Add SlackConnectionRequiredDialog component for prompting Slack connection - Add i18n translations for 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>
- Added files:read to required Slack OAuth scopes - Fixes import failure from other workspaces due to missing permission 🤖 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.15.1](v2.15.0...v2.15.1) (2025-11-29) ### Bug Fixes * improve Slack import error handling and add files:read scope ([#169](#169)) ([740eef3](740eef3))
Contributor
|
🎉 This PR is included in version 2.15.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Merged
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
Issue 1: Workspace Not Connected Error Dialog
When importing a workflow from Slack, if the source workspace is not connected, users saw an error without clear guidance on what to do next.
Issue 2: Missing OAuth Scope
Importing workflows from workspaces other than cc-wf-studio failed with permission errors because the
files:readscope was missing from OAuth authentication.Error observed:
{ "error": "missing_scope", "needed": "files:read", "provided": "chat:write,files:write,channels:read,groups:read" }Solution
Fix 1: Add SlackConnectionRequiredDialog
Fix 2: Add files:read OAuth Scope
files:readto required OAuth scopes inslack-oauth-service.tsChanges
New Files
src/webview/src/components/dialogs/SlackConnectionRequiredDialog.tsxModified Files
src/extension/services/slack-oauth-service.ts- Addedfiles:readscopesrc/extension/commands/slack-share-workflow.ts- Pass workspaceName through flowsrc/extension/commands/slack-import-workflow.ts- Handle WORKSPACE_NOT_CONNECTED errorsrc/extension/utils/slack-message-builder.ts- Add workspaceName to deep linkssrc/extension/utils/slack-error-handler.ts- Add workspaceId to error infosrc/shared/types/messages.ts- Add workspaceName to payload typessrc/webview/src/App.tsx- Handle error and show dialogImpact
files:readscopeTesting
🤖 Generated with Claude Code