Skip to content

[Bug]: Feishu message reply routed to wrong channel #25767

@deezh

Description

@deezh

Summary

Replies to Feishu DM messages are incorrectly routed to webchat instead of back to Feishu

Steps to reproduce

  1. Configure Feishu channel with DM enabled
  2. Send a DM message to the OpenClaw bot from Feishu
  3. Bot processes the message and generates a reply
  4. Observe: Reply appears in webchat instead of Feishu

Expected behavior

The reply should be sent back to the Feishu channel (the same channel where the message originated)

Actual behavior

The reply appears in webchat instead of Feishu. The session's deliveryContext correctly shows channel: "feishu" but the reply is still routed to webchat.

OpenClaw version

2026.2.23

Operating system

macOS 11.7.10 (Darwin 20.6.0)

Install method

No response

Logs, screenshots, and evidence

Session configuration shows correct channel in deliveryContext:

"deliveryContext": {
  "channel": "feishu",
  "to": "user:ou_4926579a2eac8e83c4adc6f1f880b91f",
  "accountId": "default"
},
"lastChannel": "feishu"


Gateway logs:

[feishu] feishu[default]: received message from ou_xxx in oc_xxx (p2p)
[feishu] feishu[default]: dispatching to agent (session=agent:main:main)
[feishu] feishu[default]: dispatch complete (queuedFinal=true, replies=1)


The dispatch shows replies=1 but the reply appears in webchat instead of Feishu.

Impact and severity

Affected: Feishu channel users
Severity: High (blocks replies in Feishu)
Frequency: 100% reproduction
Consequence: Users cannot receive agent replies in Feishu DM, making the channel unusable

Additional information

No response

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