Repository navigation
Description
Issue: Backward-compat shim missing after core.channel.turn.run 鈫?core.channel.inbound.run rename
Affected versions:
openclawcore: 2026.5.22 (a374c3a) 鈥?renamedturn鈫?inboundon 2026-06-03@openclaw/feishu: 2026.5.28 (released 2026-05-30) 鈥?still callscore.channel.turn.run()@openclaw/feishu: 2026.6.1 (released 2026-06-03 19:21 UTC) 鈥?migrated tocore.channel.inbound.run()鉁?fixed
Environment: Windows 11, Node v24.14.0, OpenClaw Gateway (port 18789), feishu DM channel.
Symptom
openclaw status --deep shows:
feishu channel ON SETUP configured
(last field SETUP 鈥?stuck, never advances to OK)
openclaw logs show, repeating on every DM event:
TypeError: Cannot read properties of undefined (reading 'run')
at Object.run (monitor.account-CmXHWuwG.js:2738) // catch
at runChannelInbound (monitor.account-CmXHWuwG.js:2678) // throw
Root cause
The 2026-06-03 OpenClaw core release renamed and moved the public core.channel API:
| Before (鈮?2026-05-22) | After (鈮?2026-06-03) |
|---|---|
core.channel.turn.run() |
core.channel.inbound.run() |
core.channel.turn.buildContext() |
core.channel.inbound.buildContext() |
core.channel.turn.runPreparedReply() |
core.channel.inbound.runPreparedReply() |
core.channel.turn.dispatchReply() |
core.channel.inbound.dispatchReply() |
Source: dist/runtime-channel-DSbqIqfK.js exposes the new inbound key but removed the turn key. Source: dist/kernel-CYjskkiY.js line 813 鈫?977 鈥?runChannelTurn was renamed to runChannelInboundEvent.
Plugins compiled against 鈮?2026-05-22 (e.g. @openclaw/feishu@2026.5.28) still call core.channel.turn.run(), which now resolves to undefined.run 鈫?TypeError.
Why this matters
- This is a silent breaking change for any third-party channel plugin pinned to the old
core.channel.turn.*API. feishu@2026.5.28(the version most users will have) is broken on a fresh install ofopenclaw@2026.5.22+.- There is no deprecation warning, no migration guide, and no compatibility shim.
- The P0 patch (see below) is required for anyone running
openclaw@2026.5.22+withfeishu@2026.5.28or any other plugin still on the old API.
Reproduction
# 1. Install openclaw 2026.5.22 (or any 2026.6.x)
npm install -g openclaw@2026.5.22
# 2. Install feishu plugin (pinned to 2026.5.28)
npm install -g @openclaw/feishu@2026.5.28
# 3. Configure feishu via openclaw config set
openclaw config set channels.feishu.<account>.appId ...
openclaw config set channels.feishu.<account>.appSecret ...
# 4. Start gateway
openclaw gateway
# 5. Check status
openclaw status --deep
# feishu channel ON SETUP configured <-- stuck
# 6. Send a DM to your bot
# 7. Tail logs
openclaw logs
# TypeError: Cannot read properties of undefined (reading 'run')
# at runChannelInbound (monitor.account-CmXHWuwG.js:2678)Proposed fix: add a turn alias to createRuntimeChannel()
This is a 0-risk backward-compat shim. It re-exports the same four functions under the old name. It's idempotent, and once all plugins migrate to inbound, the alias can be removed in a future major version with a deprecation notice.
// P0 patch: backward-compat alias for plugins calling core.channel.turn.run
// (new name is core.channel.inbound.run 鈥?see runChannelInboundEvent)
turn: {
buildContext: buildChannelInboundEventContext,
run: runChannelInboundEvent,
runPreparedReply: runPreparedInboundReply,
dispatchReply: dispatchChannelInboundReply
},The shim is already in our patches/openclaw+runtime-channel-turn-alias+2026-06-07.patch file. The patch is verified by git apply --check and git apply (6840B byte-identical to the live file).
Alternative fix considered
Updating all 4 core.channel.turn.run call sites in @openclaw/feishu's monitor.account-*.js to core.channel.inbound.run 鈥?this is what feishu@2026.6.1 did (it was the original fix path). However, this only fixes feishu; other plugins on the old API would still break.
A core-level shim is the correct long-term fix.
Workaround until the fix lands
For users on openclaw@2026.5.22+ + feishu@2026.5.28 (or any old-API plugin), apply this patch via OpenClaw's built-in patches/ mechanism:
- Save the patch from this issue to
~/AppData/Roaming/npm/node_modules/openclaw/patches/openclaw+runtime-channel-turn-alias+2026-06-07.patch npm install -g openclaw(the postinstall hook auto-replays allpatches/*.patch)
We have validated this with git apply --check + git apply (returns 6840B identical to the live file).
PR
I'd be happy to submit a PR. The PR would add the 4-line turn block shown above to dist/runtime-channel-DSbqIqfK.js in createRuntimeChannel()'s return object (placed right after the existing inbound key).
Suggested PR title: feat(core): add backward-compat turnalias oncore.channel for plugins on the legacy API
Suggested label: bug, core:runtime, breaking-change-revert, help wanted
cc: channel plugin maintainers 鈥?please migrate your call sites to core.channel.inbound.run when convenient. The turn alias will be kept for at least one major release cycle.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 7, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 30, 2026, 3:47 PM ET / 19:47 UTC.
Summary
Keep open: current main deliberately exposes only
channel.inbound, while the linked PR is an unmerged, conflict-marked candidate. Whether an older released plugin runtime API warrants a deprecated compatibility alias is a maintainer product-contract decision.Reproducibility: no. current source proves that the old member is absent, but this read-only review could not run the historical published-plugin pairing or establish its release contract from local history.
Root-cause cluster
Relationship:
canonicalCanonical: #91122
Summary: This issue is the canonical product-contract discussion; the linked PR is a candidate implementation, not a completed fix.
Members:
fixed_by_candidate: fix(plugin-runtime): restore channel turn alias #91245 - It explicitly proposes the requested alias and is linked with closing syntax, but remains open and conflict-marked.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Maintainer decision needed
runtime.channel.turn.*surface for a defined deprecation window?turnas the same runtime object asinbound, document a deprecation/removal window, and prove an archived old-plugin receive path.Why: Current documentation deliberately removes the namespace, while the existing lower-bound compatibility metadata does not prevent an older plugin from loading on a newer host. Choosing an alias versus fail-fast upgrade behavior defines the public plugin contract.
Next step
The linked PR already owns the proposed code change, but maintainer direction is required before treating a legacy alias as supported API.
Review details
Best possible solution:
Make an explicit plugin-SDK compatibility decision: if older stable plugins are supported, restore one shared deprecated alias with a bounded removal policy and archived-plugin regression proof; otherwise reject or diagnose the incompatible plugin before it handles a message.
Do we have a high-confidence way to reproduce the issue?
No: current source proves that the old member is absent, but this read-only review could not run the historical published-plugin pairing or establish its release contract from local history.
Is this the best way to solve the issue?
Unclear: a same-object alias avoids divergent runtime behavior, but the current docs intentionally removed the name, so maintainers must first decide whether this legacy plugin API remains supported.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 16421ec0b0b3.
Label changes
Label justifications:
P1: The reported compatibility failure prevents replies to inbound channel messages for affected installed plugins.impact:message-loss: The described runtime dereference suppresses normal responses after an inbound event is received.Evidence reviewed
What I checked:
inboundwith the four relevant helpers; it has noturnmember. (src/plugins/runtime/runtime-channel.ts:197, 16421ec0b0b3)runtime.channel.turn.*aliases were removed and directs plugins toruntime.channel.inbound.*. Public docs:docs/plugins/sdk-channel-inbound.md. (docs/plugins/sdk-channel-inbound.md:230, 16421ec0b0b3)extensions/feishu/src/bot.ts:1762, 16421ec0b0b3)src/plugins/install-shared.ts:68, 16421ec0b0b3)src/plugins/runtime/runtime-channel.ts:197, 06c2dc7eb105)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.20 remaining items
openclaw-barnacle commentedon Sep 14, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
fix: preserve complete legacy channel runtime alias
fix(plugin-runtime): restore channel turn alias (#91245)
fix(plugin-runtime): restore channel turn alias (openclaw#91245)