openclaw - 💡(How to fix) Fix Feishu channel dispatch fails with TypeError: 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 WebSocket channel receives messages successfully but fails to dispatch them to the agent runtime with "TypeError: Cannot read properties of undefined (reading 'run')".

Error Message

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

Root Cause

Feishu WebSocket channel receives messages successfully but fails to dispatch them to the agent runtime with "TypeError: Cannot read properties of undefined (reading 'run')".

Fix Action

Fix / Workaround

Feishu WebSocket channel receives messages successfully but fails to dispatch them to the agent runtime with "TypeError: Cannot read properties of undefined (reading 'run')".

Message should be dispatched to agent:main:main and processed by the agent runtime, similar to how webchat and other channels work.

Gateway logs show:

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

Error location: subsystem-Bzb73A0E.js:179:14

Code Example

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

---

{"subsystem":"channels/feishu","message":"feishu[default]: received message from ou_7a3d155708180294d61db8e93f4af5dc in oc_90be56de9600f2c99706d5ab70de14d0 (p2p)","date":"2026-05-31T11:49:50.684Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: Feishu[default] DM from ou_7a3d155708180294d61db8e93f4af5dc: 你好","date":"2026-05-31T11:49:50.699Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: dispatching to agent (session=agent:main:main)","date":"2026-05-31T11:49:50.724Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')","logLevelName":"ERROR","date":"2026-05-31T11:49:50.725Z","path":"file:///Users/wenhanting/.local/lib/node_modules/openclaw/dist/subsystem-Bzb73A0E.js:179:14"}


Agent status shows `bootstrapPending: true` for main agent even after multiple gateway restarts.
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Feishu WebSocket channel receives messages successfully but fails to dispatch them to the agent runtime with "TypeError: Cannot read properties of undefined (reading 'run')".

Steps to reproduce

  1. Configure Feishu channel with WebSocket mode and valid credentials
  2. Set up binding: {agentId: "main", match: {channel: "feishu", accountId: "default"}}
  3. Start OpenClaw gateway (2026.5.30-beta.1)
  4. Send a direct message from Feishu to the bot
  5. Observe error in gateway logs

Expected behavior

Message should be dispatched to agent:main:main and processed by the agent runtime, similar to how webchat and other channels work.

Actual behavior

Gateway logs show:

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

Error location: subsystem-Bzb73A0E.js:179:14

OpenClaw version

2026.5.30-beta.1

Operating system

macOS (Darwin 25.2.0 arm64)

Install method

npm global

Model

cc-vibe-claude/claude-opus-4-7-thinking

Provider / routing chain

Direct (no proxy)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

{"subsystem":"channels/feishu","message":"feishu[default]: received message from ou_7a3d155708180294d61db8e93f4af5dc in oc_90be56de9600f2c99706d5ab70de14d0 (p2p)","date":"2026-05-31T11:49:50.684Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: Feishu[default] DM from ou_7a3d155708180294d61db8e93f4af5dc: 你好","date":"2026-05-31T11:49:50.699Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: dispatching to agent (session=agent:main:main)","date":"2026-05-31T11:49:50.724Z"}
{"subsystem":"channels/feishu","message":"feishu[default]: failed to dispatch message: TypeError: Cannot read properties of undefined (reading 'run')","logLevelName":"ERROR","date":"2026-05-31T11:49:50.725Z","path":"file:///Users/wenhanting/.local/lib/node_modules/openclaw/dist/subsystem-Bzb73A0E.js:179:14"}


Agent status shows `bootstrapPending: true` for main agent even after multiple gateway restarts.

Impact and severity

  • Affected: All Feishu channel users on 2026.5.27, 2026.5.28, and 2026.5.30-beta.1
  • Severity: High (completely blocks Feishu incoming messages)
  • Frequency: 100% reproducible on every incoming Feishu message
  • Consequence: Users cannot interact with agents via Feishu; only outbound messages (agent→user) work

Additional information

  • Sending messages FROM agent TO Feishu works correctly
  • Only receiving messages FROM Feishu TO agent fails
  • Same error occurs across 2026.5.27, 2026.5.28, and 2026.5.30-beta.1
  • openclaw doctor --fix shows no configuration issues
  • Bindings configuration is correct (verified multiple times)
  • Temporary workaround: Use webchat instead of Feishu
  • The agent runtime object appears to be undefined when the Feishu channel dispatch code tries to call .run() method

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…

FAQ

Expected behavior

Message should be dispatched to agent:main:main and processed by the agent runtime, similar to how webchat and other channels work.

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 dispatch fails with TypeError: Cannot read properties of undefined (reading 'run')