Skip to content

fix: pass channel_ids as string in users invite#9

Merged
yamitzky merged 2 commits into
mainfrom
fix/invite-channel-ids
Apr 10, 2026
Merged

fix: pass channel_ids as string in users invite#9
yamitzky merged 2 commits into
mainfrom
fix/invite-channel-ids

Conversation

@yamitzky
Copy link
Copy Markdown
Owner

Summary

  • users invitechannel_ids を配列ではなくカンマ区切り文字列で渡すよう修正(SDK型定義のバグ回避)
  • Slack API エラー時にエラーコード・必要スコープ等の詳細を表示するよう改善
  • CLAUDE.md の型安全性ルールを更新(SDK型バグには apiCall() より as を優先)

Background

SDK は channel_ids: [string, ...string[]] を要求するが、実際の Slack API はカンマ区切り文字列を期待する。SDK が配列を JSON.stringify してしまい ["CD297CTDK"] という文字列リテラルが送信され、failed_to_send_invite エラーになっていた。

Test plan

  • bun test 通過
  • bun run lint 通過
  • 実際の Enterprise Grid 組織でゲスト招待が成功することを確認

🤖 Generated with Claude Code

yamitzky and others added 2 commits April 10, 2026 11:03
SDK type definition expects [string, ...string[]] but the actual Slack API
expects a comma-separated string. The SDK's JSON serialization of arrays
produces invalid channel IDs, causing failed_to_send_invite errors.

Also adds Slack API error detail display and updates CLAUDE.md type safety rules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All errors now show a clean one-line message by default.
Use --verbose to see full stack traces for debugging.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yamitzky yamitzky merged commit a90ac85 into main Apr 10, 2026
1 check passed
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