openclaw - 💡(How to fix) Fix Feishu channel broken since 5.27: never called, dispatch fails with 'Cannot read properties of undefined (reading run)'

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

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…

Feishu channel stops working starting from version 2026.5.27. Messages are received via WebSocket but dispatch to the agent fails with:

TypeError: Cannot read properties of undefined (reading 'run')

The root cause is that setFeishuRuntime() is exported from runtime-CjGuNoJc.js but never called anywhere in the codebase. This means getFeishuRuntime() returns undefined, and when monitor.account-BHNU313T.js tries to call core.channel.inbound.run(...), it throws.

Error Message

feishu[default]: received message from ou_xxx in oc_xxx (p2p)
feishu[default]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[default]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')

Root Cause

In monitor-BBAkUIze.js, the monitorFeishuProvider function is called, but setFeishuRuntime(opts.runtime) is never invoked before monitorSingleAccount runs. Inside monitorSingleAccount, the code calls getFeishuRuntime() which returns undefined because the runtime was never set.

Fix Action

Workaround

Downgrading to OpenClaw 2026.5.22 (or earlier) fixes the issue. Confirmed working on 2026.5.18.

Code Example

TypeError: Cannot read properties of undefined (reading 'run')

---

feishu[default]: received message from ou_xxx in oc_xxx (p2p)
feishu[default]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[default]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')
RAW_BUFFERClick to expand / collapse

Description

Feishu channel stops working starting from version 2026.5.27. Messages are received via WebSocket but dispatch to the agent fails with:

TypeError: Cannot read properties of undefined (reading 'run')

The root cause is that setFeishuRuntime() is exported from runtime-CjGuNoJc.js but never called anywhere in the codebase. This means getFeishuRuntime() returns undefined, and when monitor.account-BHNU313T.js tries to call core.channel.inbound.run(...), it throws.

Steps to Reproduce

  1. Install OpenClaw 2026.5.27+ (also reproduced on 2026.5.28-beta.1)
  2. Configure a Feishu channel with WebSocket connection mode
  3. Send a message to the bot from Feishu
  4. Gateway receives the message but fails to dispatch

Logs

feishu[default]: received message from ou_xxx in oc_xxx (p2p)
feishu[default]: dispatching to agent (session=agent:main:feishu:direct:ou_xxx)
feishu[default]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')

Root Cause

In monitor-BBAkUIze.js, the monitorFeishuProvider function is called, but setFeishuRuntime(opts.runtime) is never invoked before monitorSingleAccount runs. Inside monitorSingleAccount, the code calls getFeishuRuntime() which returns undefined because the runtime was never set.

Workaround

Downgrading to OpenClaw 2026.5.22 (or earlier) fixes the issue. Confirmed working on 2026.5.18.

Environment

  • OpenClaw versions affected: 2026.5.27, 2026.5.28-beta.1
  • Last working version: 2026.5.22 (confirmed), 2026.5.18 (confirmed)
  • macOS, Node 22.22.2
  • Feishu connection mode: WebSocket

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 Feishu channel broken since 5.27: never called, dispatch fails with 'Cannot read properties of undefined (reading run)'