Skip to content

Bug: Slack bot fails to invite users to channels it's not a member of (not_in_channel) #5641

Description

Summary

The Slack bot attempts to invite users to channels it is not a member of, resulting in a not_in_channel API error. The bot should either verify it's in the target channel before attempting an invite, or gracefully handle the error.

Steps to Reproduce

  1. Bot attempts to invite user U09QCL9HURE to channel C09HEERCY8P
  2. Slack API returns not_in_channel error
  3. Operation fails silently with no fallback

Proposed Fix

Two-part fix:

  1. Code fix: Before inviting a user to a channel, check if the bot is a member. If not, skip the invite and log a warning rather than erroring.
  2. Infra fix: Audit all channels the bot should be in and ensure it's invited to each one. Add the bot to C09HEERCY8P as an immediate mitigation.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    addieIssues related to Addie (via any channel)bugSomething isn't workingclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.priority:P1High priority: important bug or follow-up, not immediate P0

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions