Repository navigation
refactor(channels): remove redundant private forwarding modules - #130348
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 4:32 PM ET / 20:32 UTC. ClawSweeper reviewWhat this changesThe PR deletes private forwarding modules in Discord, Slack, WhatsApp, and Zalo Personal and retargets callers to their existing owner modules or shared Plugin SDK subpaths. Merge readinessKeep this maintainer-owned cleanup open for human handling. Static review found the direct imports align with existing narrow Plugin SDK contracts and preserve Slack’s lazy boundary, but current-main comparison and exact-head CI completion are unavailable in this checkout. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherChannel plugins translate transport events and actions into OpenClaw’s shared Plugin SDK behavior. The refactor changes internal import routing while retaining the same channel action, inbound-dispatch, and delivery owners. flowchart LR
A[Channel event or action] --> B[Channel plugin]
B --> C[Owner-specific module]
C --> D[Shared Plugin SDK]
D --> E[Message delivery or action result]
Decision needed
Why: The PR carries the protected maintainer label and is maintainer-authored; the review worker cannot independently establish current-main equivalence from this partial checkout. Before merge
Agent review detailsSecurityNone. PR surfaceSource -190, Tests +3. Total -187 across 59 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the direct owner imports, finish exact-head CI, and confirm the latest ClawSweeper rank-up instructions before landing the maintainer-owned refactor. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors internal module ownership rather than fixing a reported user-visible defect. Is this the best way to solve the issue? Yes, subject to exact-head verification: removing redundant private forwarders and importing narrow existing owners is the cleaner Plugin SDK boundary, and Slack retains its lazy runtime load. AGENTS.md: found but not applied because it conflicted with ClawSweeper's review contract. Codex review notes: model internal, reasoning high; reviewed against d9b41332e458. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Final maintainer verification for fcc2ceb: the normal pull-request CI run 33010464955 completed green. Complete precommit review and a distinct authenticated full published two-commit review both completed without actionable findings; the latter covered all 59 changed files in one complete pass. The latest ClawSweeper rank-up request is satisfied: exact-head CI has finished, and I read the current rank-up list. Its partial-checkout/promisor limitation does not apply to the maintainer checkout: the full parent range, original private exports, canonical owners, callers, and current-main overlap were inspected. The eight public API roots are unchanged, and all retained production bodies retain their original behavior. The flagged Focused proof passed 909 existing assertions across all four channel owners and the public SDK, channel import, and bundled-shape guards. After the two duplicate type imports were consolidated, the configured syntax lint passed all 53 retained changed files and 47 Discord account/security assertions passed. The review bot's Final production delta is +127/-300, net -173. Tests and test support are separately +26/-40, net -14, and receive no production credit. The earlier Testbox run 33007275912 failed during source sync before checks (exit 124), and local build/declaration preparation had inherited dependency prerequisites missing; neither is passing evidence. The clean installed normal hosted gates on the final head are the full lint/type/build proof. Proceeding through native review validation and Testbox-gated prepare/merge, without changing the reviewed head. |
|
Merged via squash.
|
…claw#130348) * refactor(channels): remove private forwarding modules * refactor(discord): consolidate config type imports
What Problem This Solves
Maintainer-requested cleanup of private forwarding modules in Discord, Slack, WhatsApp, and Zalo Personal. These modules duplicate existing SDK or plugin ownership and make internal dependency paths harder to follow.
Why This Change Was Made
Remove six export-only private modules and import each binding from its existing owner. Discord callers now use the precise SDK, message, and native-command modules; Slack retains its existing lazy action loader; WhatsApp retains its parent runtime/security boundary; Zalo Personal uses narrow SDK entrypoints. No replacement aliases or broad core imports are added.
Production: +127/-300, net -173 lines. Tests and test support: +26/-40, net -14, counted separately. All eight public API/runtime entrypoint files remain byte-identical, preserving their complete value/type exports. There are no configuration, persistence, schema, protocol, dependency, or permission changes.
User Impact
No user-visible behavior change. Channel authentication, permission checks, native command callbacks, media handling, and message delivery continue through the same implementations. This is AI-assisted internal maintenance, not a feature retirement.
Evidence
vi.importActual; the removed WhatsApp mock was an identical subset of the retained canonical mock. Existing assertions remain intact.git diff --checkpassed. Current head:fcc2cebd107ae517278a4612fb2203c9df37bd7c.Local dependency limitations: the linked worktree has no local dependency install, and the unchanged Canvas A2UI build resolves
@lit/contextonly from worktree-local dependency paths, stopping before compilation. The configured extension lint wrapper also stops while preparing SDK declarations because the inherited install predates the branch's pinned dependencies: installed Google SDK 2.13.0 versus required 2.17.1, markdown-it 14.3.0 versus 15.0.0, and Pi TUI 0.82.1 versus 0.84.2. The corresponding errors concern newer SDK/TUI exports and markdown-it types, outside this patch. No shared dependencies were reconciled and neither failed command is claimed as passing. Clean hosted lint/type/artifact-build proof is required before merge. No live channel API behavior changes are claimed; existing owner-boundary tests exercise unchanged behavior.