Skip to content

fix: support current OpenClaw channel SDK exports - #250

Open
litang9 wants to merge 1 commit into
Tencent:mainfrom
litang9:agent/support-channel-outbound-sdk
Open

litang9 wants to merge 1 commit into
Tencent:mainfrom
litang9:agent/support-channel-outbound-sdk

Conversation

@litang9

@litang9 litang9 commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • load createTypingCallbacks from the canonical openclaw/plugin-sdk/channel-outbound entrypoint
  • fall back to the legacy channel-runtime entrypoint only when an older supported host does not export channel-outbound
  • cover current and legacy host resolution plus non-export loader failures

Why

OpenClaw removed openclaw/plugin-sdk/channel-runtime in 2026.7.2-beta.4. As a result, @tencent-weixin/openclaw-weixin@2.4.6 cannot start on current beta hosts, including 2026.7.2-beta.7.

A direct import replacement would fix current hosts but break the plugin's existing openclaw >=2026.5.12 compatibility contract because those older hosts do not export channel-outbound. The narrow resolver uses the canonical entrypoint first and retains the old entrypoint only for that declared compatibility range.

Related: openclaw/openclaw#115478

Validation

  • npm run typecheck with openclaw@2026.5.12
  • npm run build with openclaw@2026.5.12
  • resolver tests against real openclaw@2026.5.12 and openclaw@2026.7.2-beta.7 installs
  • 402 tests passed across 28 test files
  • installed the packed patch through openclaw plugins install on 2026.7.2-beta.7; after a gateway restart, the Weixin long-poll account reports running=true, reconnectAttempts=0, and lastError=null

npm test still exits nonzero on the repository's existing global branch coverage threshold: observed 89.14%, required 90%. The new resolver itself is fully covered except for the non-Error guard branch.

@NewFuture

Copy link
Copy Markdown

Thanks for addressing the changing OpenClaw channel SDK surface. The community-maintained distribution independently adopted the stable public openclaw/plugin-sdk/channel-message entry for createTypingCallbacks in community PR #51, released in v3.1.0 (the current npm release is v3.1.6).

The community port targets its declared OpenClaw >=2026.6.1 boundary and verifies the real minimum and development host profiles, so it does not need to copy a dynamic fallback for private or removed entry points.

This is a community release status update, not a claim that this Tencent PR has been merged upstream:
NewFuture/openclaw-weixin#51
https://www.npmjs.com/package/openclaw-weixin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants