Repository navigation
fix(plugin-runtime): restore channel turn alias - #91245
fuller-stack-dev merged 13 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 11:36 PM ET / September 17, 2026, 03:36 UTC (Revision 17). ClawSweeper reviewWhat this changesRestores the deprecated channel.turn API as the same object as channel.inbound, including scoped registration, dispatcher binding, test helpers, and migration documentation. Merge readiness✅ Ready for maintainer review This repair remains necessary: current main and v2026.9.4 still lack the alias. Earlier blocking findings are resolved, and the recorded production-path proof supports the focused compatibility fix. Priority: P1 Review scores
Verification
How this fits togetherChannel plugins pass incoming messages into OpenClaw’s shared runtime for context construction, session recording, and reply dispatch. The compatibility alias lets older callers reach that same pipeline. flowchart LR
A[Incoming channel message] --> B[Channel plugin]
B --> C[Legacy turn API]
B --> D[Current inbound API]
C --> E[Shared scoped runtime]
D --> E
E --> F[Session and reply dispatch]
F --> G[Channel delivery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7, Tests +79, Docs +3. Total +89 across 11 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one canonical inbound implementation and retain its deprecated alias for published plugins until the documented migration and removal conditions are met. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main lacks channel.turn, so an older plugin calling channel.turn.run reaches undefined; the discussion supplies matching production failures. This reviewer did not execute a reproduction. Is this the best way to solve the issue? Yes. Object identity preserves the canonical implementation and scoped dispatcher while repairing the reported legacy call path without new configuration or persisted-state changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9a4468148bc0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
9234580 to
2ebe26c
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2ebe26c to
54890e2
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
54890e2 to
17f1e84
Compare
|
Affected user here — this PR would fix a silent, total inbound break for the Symptom / repro: Restoring |
|
Thanks @openclaw-barnacle — we've already migrated to The point of the +1 was specifically about this PR's plugin-SDK compatibility fix, not about re-adding BlueBubbles to core. The The alias approach here restores semver-compatible behaviour for third-party plugins published to ClawHub without requiring every plugin author to cut a new release. That's the case for merging this — it's unrelated to whether BlueBubbles is bundled or not. |
|
BlueBubbles is deprecated and no longer ships as a bundled OpenClaw channel. Use iMessage via |
|
This pull request has been automatically marked as stale due to inactivity. |
Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence.
Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned. Closes openclaw#91122 Co-authored-by: Yzx <[email protected]>
|
@clawsweeper re-review Current head: The existing PR now preserves contributor ancestry and includes the complete five-member same-object alias, exact runtime-bound dispatch, scoped-registration identity, and defined canonical mock-override precedence. Obsolete paths and the unrelated snapshot-test change are removed from the final diff. The updated PR body records fresh independent review, 67 focused passing tests (plus a 12-test rerun after the typed-fixture correction), and the actual built-runtime runner/dispatch proof through both names. The historical four-helper probe is explicitly not current dispatch acceptance. The real core pipeline used isolated session storage, an injected reply producer and local delivery observer; no live provider/Feishu claim is made. Exact-head hosted CI and final native preparation are still in progress; this is a review request, not merge/readiness credit. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Consume the reviewed file-preview lazy-English extraction from openclaw#150424, the cold worktree input closure, and the Qwen initial-deadline fixture from openclaw#150026. Native manifest closure is now also present on main via openclaw#150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]>
Replace the temporary file-preview extraction with the current-main implementation from openclaw#150491 before merging main. Preserve the channel alias repair and existing contributor ancestry. Co-authored-by: Peter Steinberger <[email protected]>
Use the current-main Qwen fixture from openclaw#150523 and openclaw#82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history.
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Merged via squash.
|
Closes #91122
What Problem This Solves
Fixes older shipped channel plugins failing on
core.channel.turn.*after the runtime renamed that API tochannel.inbound.*.User Impact
Existing plugins can use the deprecated alias again, including the current runtime-bound
dispatchhelper. New plugins should continue usinginbound. No configuration, provider, or migration changes are required.Why This Change Was Made
turnreferences the complete same five-member object asinbound, including after registration scopes the context builder. Runtime-injected dispatch keeps precedence; test mocks preserve defined canonical overrides over legacy overrides. Lazy loading and generic signatures remain intact.The original implementation and contributor commits by @849261680 are retained. This maintainer repair updates the existing PR to current main, removes the unrelated snapshot-test edit and obsolete baseline/documentation paths, and records the alias in current compatibility metadata.
Evidence
Current integration head:
1387f50f563014a93cc5a6aa523bb59a31b1256c. The eleven-file alias repair remains byte-identical to the accepted prior proof.pnpm build: completed successfully. No ineffective-dynamic-import warning. The unchanged UI build reported a startup-size advisory (354.3 versus 354.1 KiB); the build exit was zero.dist/plugins/runtime/index.js, called the actual core runner/dispatcher with isolated session storage, and observed two delivered final payloads. Both names used the runtime-injected dispatcher despite a conflicting caller override:{"sameObject":true,"helpers":["buildContext","run","runPreparedReply","dispatch","dispatchReply"],"boundDispatchCalls":2,"delivered":[{"surface":"inbound","text":"alias runtime accepted","kind":"final"},{"surface":"turn","text":"alias runtime accepted","kind":"final"}],"drop":{"dispatched":false,"kind":"drop"}}The built production sources are blob-identical to this head; intervening main changes did not change the runtime/turn owners or the eleven repair paths. The final fixture-only change was separately reviewed and tested. Exact-head hosted CI and native preparation/landing remain required.
The PR is synced with main
75d29a7c637bb938440afb59669807bff749f0c0. All temporary prerequisite deltas now come entirely from landed canonical main, including the UI startup fix (#150491) and Qwen budget fixture (#150523). The final diff is exactly the eleven-file accepted alias repair; its blobs are unchanged.Historical integration verification included independent review, Qwen/cold-checkout/native-wrapper tests, and local voice routing. On prior head
980effb30baa, hosted voice routing passed with 165 assertions across 15 files and worker exit 0. Its overall CI run was later cancelled by the necessary Qwen/main conflict sync, with one inherited installer one-second loopback timeout and two unfinished jobs. That same installer test passed on prior byte-identical source. A retry request was rejected because the workflow was still running; no retry started. Neither superseded run receives full-CI credit.Required exact-head CI 35178127514 and
openclaw/ci-gatepassed on attempt 2 after one failed-jobs-only retry. The Codex package compile timeout and IPv6 portal shard passed without source or timeout changes; successful jobs were not replayed. Native review andprepare-runpassed on1387f50f563014a93cc5a6aa523bb59a31b1256c. Landed via the native workflow asc147150cca9d, verified on current main. No required gate was waived and no accepted alias proof was replayed.Proof limit: the reply producer and delivery observer were injected into the real built core dispatch path. No live provider, Feishu account, or old published Feishu package was exercised. The prior contributor four-helper probe remains historical evidence, not acceptance for current dispatch.