Skip to content

Slack messages don't auto-route replies back to Slack #215

@gabac

Description

@gabac

Bug Description

When Slack is enabled alongside WhatsApp, messages from Slack are received correctly, but replies are not automatically delivered back to Slack. They just disappear into the void.

Steps to Reproduce

  1. Enable both WhatsApp and Slack providers
  2. Send a message to the bot via Slack DM
  3. Bot receives the message and generates a response
  4. Response is NOT delivered to Slack (or anywhere)

Expected Behavior

Replies should be routed back to the same channel/provider the message came from.

Actual Behavior

  • Messages from Slack arrive in the session with [Slack cyril ...] prefix
  • Assistant response completes successfully (stopReason: 'stop')
  • Response is not delivered anywhere

Root Cause Analysis

Looking at ~/.clawdbot/sessions/sessions.json:

  • All messages (WhatsApp + Slack) go into the same main session
  • Session has chatType: 'direct' but no replyTo or source channel metadata
  • When a Slack message arrives, there's no record of where to route the reply

Suggested Fix

Track the source provider/channel per-message or per-turn, and route the assistant's reply back to that source.

Workaround

Explicitly send to Slack using:

clawdbot send --provider slack --to "channel:<channel_id>" --message "..."

Environment

  • clawdbot version: 2026.1.5-3
  • macOS (Darwin arm64)
  • Both WhatsApp and Slack enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions