openclaw - 💡(How to fix) Fix [Bug] Feishu DM dispatch fails: TypeError: Cannot read properties of undefined (reading 'run')

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

feishu[main]: feishu[main]: DM from ou_xxx: <message> feishu[main]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx) feishu[main]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')

Root Cause

  • Downgrading is not feasible because the gateway config was written by v2026.5.31-beta.3 and the older binary refuses to start.
  • The @larksuite/openclaw-lark plugin was also tested but produces the same error, suggesting the bug is in the core Feishu channel dispatch layer.
  • Related issues: #84117 (group replies=0), #38686, #77368 -- but this appears to be a different/sibling bug affecting DM as well.

Fix Action

Fix / Workaround

After upgrading to OpenClaw v2026.5.31-beta.3, Feishu (飞书) direct messages are received by the agent but fail to dispatch replies. The gateway log shows:

feishu[main]: feishu[main]: DM from ou_xxx: <message>
feishu[main]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[main]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')
  1. Install/upgrade to OpenClaw v2026.5.31-beta.3
  2. Configure Feishu channel with valid App ID/Secret
  3. Send a direct message to the bot on Feishu
  4. Bot receives the message but reply never arrives
  5. Check gateway logs, see the TypeError above

Code Example

feishu[main]: feishu[main]: DM from ou_xxx: <message>
feishu[main]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[main]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')
RAW_BUFFERClick to expand / collapse

Bug Description

After upgrading to OpenClaw v2026.5.31-beta.3, Feishu (飞书) direct messages are received by the agent but fail to dispatch replies. The gateway log shows:

feishu[main]: feishu[main]: DM from ou_xxx: <message>
feishu[main]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[main]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')

Environment

  • OpenClaw version: v2026.5.31-beta.3 (3fcd8e0)
  • OS: Windows 10 (build 22000)
  • Node.js: v25.2.1
  • Install method: npm global install
  • Feishu connection mode: WebSocket

Steps to Reproduce

  1. Install/upgrade to OpenClaw v2026.5.31-beta.3
  2. Configure Feishu channel with valid App ID/Secret
  3. Send a direct message to the bot on Feishu
  4. Bot receives the message but reply never arrives
  5. Check gateway logs, see the TypeError above

Expected Behavior

Feishu DM should be dispatched and replied to normally, as it did in v2026.5.20 and earlier stable versions.

Actual Behavior

Messages are received by the agent (visible in session logs), but the dispatch layer throws TypeError: Cannot read properties of undefined (reading 'run') and no reply is ever sent. This affects both DM and group chat (replies=0 for groups).

Additional Notes

  • Downgrading is not feasible because the gateway config was written by v2026.5.31-beta.3 and the older binary refuses to start.
  • The @larksuite/openclaw-lark plugin was also tested but produces the same error, suggesting the bug is in the core Feishu channel dispatch layer.
  • Related issues: #84117 (group replies=0), #38686, #77368 -- but this appears to be a different/sibling bug affecting DM as well.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] Feishu DM dispatch fails: TypeError: Cannot read properties of undefined (reading 'run')