Repository navigation
feat(channels): externalize iMessage - #117101
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
64c2dc6 to
23a2252
Compare
23a2252 to
97c0845
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 7:50 PM ET / 23:50 UTC. ClawSweeper reviewWhat this changesThis PR removes iMessage from the core distribution and makes Merge readinessThis PR remains necessary: current Priority: P2 Review scores
Verification
How this fits togetherThe Gateway discovers configured channel plugins from the bundled distribution, persisted installed-plugin index, and official external catalog. For iMessage, this PR changes the distribution source while retaining the same plugin and channel identifier so configured users can install the external package and continue through the normal channel lifecycle. flowchart LR
A[Existing iMessage configuration] --> B[Gateway startup]
B --> C[Persisted plugin index]
C --> D[Relocation bridge]
E[Official channel catalog] --> D
D --> F[External iMessage package]
F --> G[Gateway channel runtime]
G --> H[Messages Mac via imsg]
Decision needed
Why: The code follows the established external-plugin and release mechanisms, but choosing whether a widely supported macOS channel leaves the default core distribution is a maintainer product and support-boundary decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests +83, Docs +45, Config +25, Other +46. Total +199 across 23 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Approve the external-plugin ownership direction only if iMessage remains in the official catalog with persisted-location recovery and the coordinated all-publishable release workflow is used before a core npm release omits the bundled artifact. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug report. The relevant verification is the declared packed-install, persisted-index recovery, doctor, and Gateway startup path, for which the PR supplies exact-head Testbox evidence and focused regression coverage. Is this the best way to solve the issue? Yes, conditionally. The branch uses the existing generic persisted-plugin relocation mechanism and official external catalog instead of introducing iMessage-specific core fallback logic; the remaining question is whether maintainers want this channel ownership model. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b8b4a11b3855. LabelsLabel 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
History |
|
Merged via squash.
|
What Problem This Solves
iMessage currently ships inside the core OpenClaw package even though the plugin catalog, install bridge, and package runtime can support it as an official external channel. This keeps macOS-only channel code and dependencies in every core install.
Why This Change Was Made
Externalizes iMessage as the official
@openclaw/imessagenpm and ClawHub plugin while preserving cold-install discovery, setup metadata, persisted bundled-plugin recovery, default enablement, channel ownership, state migration, and doctor contracts.The core package now excludes
dist/extensions/imessage/**; the official external channel catalog remains the source for on-demand installation.User Impact
Existing iMessage operators keep their configuration and migration path. New installs select iMessage normally and install the official plugin on demand. The plugin still requires a signed-in Mac with
imsg; this change does not add a Linux transport or send a real message during validation.Evidence
97c084528de3ec2a182a9bfc8b29a6a45ca0a1499878bfc8e505f9bbc87905b67488248e51546eaf0.99019fba7e-4e62-7930-b33e-cfd4d980ceebgit diff --checkpassed.{ "verdict": "PASS", "runtimeProofHead": "97c084528de3ec2a182a9bfc8b29a6a45ca0a149", "coreOmitted": "dist/extensions/imessage", "plugin": "@openclaw/imessage", "install": "npm-pack", "runtimeInspect": "loaded-external", "doctor": "fix-pass", "gateway": { "platform": "linux", "channelEnabled": false, "coldStarts": 2, "healthz": "live" }, "realMessageSent": false }Linux validation proves package omission, exact plugin artifact install, runtime inspection, doctor repair, and two Gateway cold starts with the channel disabled. macOS-specific
imsgbehavior is covered by the focused iMessage status, setup, state-migration, and doctor-contract tests; no fake transport or real account was used.Release Sequencing
Maintainer decision: land the package ownership change, then require the selected-plugin npm release preflight for
@openclaw/imessageon the merged SHA. The release workflow owns coordinated core/plugin publication; the core release must not ship before the matching official plugin package is available. No package is published by this PR.