openclaw - 💡(How to fix) Fix [Bug]: Feishu channel fails to dispatch messages after upgrading from v2026.4.5 to v2026.4.24 — createScopedPairingAccess is not a function [1 comments, 2 participants]

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…
GitHub stats
openclaw/openclaw#71981Fetched 2026-04-27 05:36:31
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1

Error Message

feishu[default]: failed to dispatch message: TypeError: (0 , _feishu.createScopedPairingAccess) is not a function

Root Cause

The @openclaw/feishu plugin (v2026.3.13, latest on npm) imports createScopedPairingAccess from openclaw/plugin-sdk/feishu:

// In feishu plugin's bot.ts
import {
  createScopedPairingAccess,
  // ...other imports
} from "openclaw/plugin-sdk/feishu";

However, OpenClaw v2026.4.24's SDK (feishu.d.ts) only exports createChannelPairingController but NOT createScopedPairingAccess:

// feishu.d.ts exports:
export { createChannelPairingController } from "./channel-pairing.js";
// createScopedPairingAccess is NOT exported here

The createScopedPairingAccess function exists in the core (channel-pairing-DF6gWII4.js) but is not re-exported through the feishu SDK barrel module.

Fix Action

Fix / Workaround

After upgrading OpenClaw from v2026.4.5 to v2026.4.24, the Feishu channel fails to dispatch any messages. Both private messages (DM) and group messages are received but cannot be replied to.

feishu[default]: failed to dispatch message: TypeError: (0 , _feishu.createScopedPairingAccess) is not a function
  1. Install OpenClaw v2026.4.24 via npm
  2. Configure Feishu channel with WebSocket mode
  3. Send a message to the bot (DM or group)
  4. Observe that messages are received but dispatch fails with the error above

Code Example

feishu[default]: failed to dispatch message: TypeError: (0 , _feishu.createScopedPairingAccess) is not a function

---

// In feishu plugin's bot.ts
import {
  createScopedPairingAccess,
  // ...other imports
} from "openclaw/plugin-sdk/feishu";

---

// feishu.d.ts exports:
export { createChannelPairingController } from "./channel-pairing.js";
// createScopedPairingAccess is NOT exported here
RAW_BUFFERClick to expand / collapse

Bug Description

After upgrading OpenClaw from v2026.4.5 to v2026.4.24, the Feishu channel fails to dispatch any messages. Both private messages (DM) and group messages are received but cannot be replied to.

Error Message

feishu[default]: failed to dispatch message: TypeError: (0 , _feishu.createScopedPairingAccess) is not a function

Root Cause Analysis

The @openclaw/feishu plugin (v2026.3.13, latest on npm) imports createScopedPairingAccess from openclaw/plugin-sdk/feishu:

// In feishu plugin's bot.ts
import {
  createScopedPairingAccess,
  // ...other imports
} from "openclaw/plugin-sdk/feishu";

However, OpenClaw v2026.4.24's SDK (feishu.d.ts) only exports createChannelPairingController but NOT createScopedPairingAccess:

// feishu.d.ts exports:
export { createChannelPairingController } from "./channel-pairing.js";
// createScopedPairingAccess is NOT exported here

The createScopedPairingAccess function exists in the core (channel-pairing-DF6gWII4.js) but is not re-exported through the feishu SDK barrel module.

Environment

  • OpenClaw version: 2026.4.24
  • Previous version: 2026.4.5
  • @openclaw/feishu version: 2026.3.13 (latest on npm)
  • OS: Ubuntu 24.04
  • Node.js: v24.14.0
  • Install method: npm install -g openclaw

Steps to Reproduce

  1. Install OpenClaw v2026.4.24 via npm
  2. Configure Feishu channel with WebSocket mode
  3. Send a message to the bot (DM or group)
  4. Observe that messages are received but dispatch fails with the error above

Expected Behavior

Feishu channel should be able to dispatch messages normally after upgrade.

Additional Context

  • The createChannelPairingController function has the same signature as createScopedPairingAccess and returns a compatible type (it extends ScopedPairingAccess), suggesting it could be used as a drop-in replacement
  • This appears to be a version mismatch between OpenClaw core and the feishu plugin SDK interface
  • Related issues: #71802 (plugin-sdk issues in 2026.4.24), #71977 (Feishu streaming issues)

Suggested Fix

Either:

  1. Export createScopedPairingAccess from feishu.d.ts in the SDK
  2. Or update @openclaw/feishu plugin to use createChannelPairingController instead
  3. Ensure SDK interface compatibility between core and channel plugins during releases

extent analysis

TL;DR

Update the @openclaw/feishu plugin to use createChannelPairingController instead of createScopedPairingAccess to fix the dispatch issue.

Guidance

  • Verify the compatibility of the createChannelPairingController function with the createScopedPairingAccess function to ensure a seamless replacement.
  • Update the bot.ts file in the @openclaw/feishu plugin to import and use createChannelPairingController from openclaw/plugin-sdk/feishu.
  • Test the Feishu channel after applying the changes to ensure messages can be dispatched successfully.
  • Consider submitting a pull request to the @openclaw/feishu plugin repository to update the SDK interface for future compatibility.

Example

// In feishu plugin's bot.ts
import {
  createChannelPairingController, // updated import
  // ...other imports
} from "openclaw/plugin-sdk/feishu";

Notes

The suggested fix assumes that createChannelPairingController has the same functionality as createScopedPairingAccess. If this is not the case, further investigation may be required to resolve the issue.

Recommendation

Apply workaround: Update the @openclaw/feishu plugin to use createChannelPairingController instead of createScopedPairingAccess, as this is a more feasible solution given the current version mismatch between OpenClaw core and the feishu plugin SDK interface.

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 channel fails to dispatch messages after upgrading from v2026.4.5 to v2026.4.24 — createScopedPairingAccess is not a function [1 comments, 2 participants]