Bug type
Regression (worked before, now fails)
Summary
iMessage channel plugin fails to load with "Cannot find package 'openclaw'" error, causing gateway crash loop when enabled.
Steps to reproduce
- Install OpenClaw from pnpm workspace (moltbot)
- Configure channels.imessage.enabled: true in ~/.openclaw/openclaw.json
- Restart gateway
- Observe iMessage channel fails to start with package resolution error
Expected behavior
iMessage channel should start successfully and be able to send/receive messages.
Actual behavior
Channel fails to start with error:
error gateway/channels/imessage [default] channel exited: Cannot find package 'openclaw' imported from /Users/duanxiaowen/AI_Projects/moltbot/extensions/imessage/src/channel.runtime.ts
Gateway enters crash loop with auto-restart attempts.
OpenClaw version
2026.3.14
Operating system
macOS 25.3.0 (arm64)
Install method
pnpm dev (moltbot workspace)
Model
friday/MiniMax-M2.5
Provider / routing chain
local moltbot workspace
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
Root Cause:
iMessage extension uses import ... from "openclaw/plugin-sdk/..." but cannot resolve the 'openclaw' package in pnpm workspace environment.
Suggested Fix:
Add self-reference to moltbot/package.json:
{
"dependencies": {
"openclaw": "workspace:*"
}
}
Temporary Workaround:
Set channels.imessage.enabled: false to prevent crash loop.
Bug type
Regression (worked before, now fails)
Summary
iMessage channel plugin fails to load with "Cannot find package 'openclaw'" error, causing gateway crash loop when enabled.
Steps to reproduce
Expected behavior
iMessage channel should start successfully and be able to send/receive messages.
Actual behavior
Channel fails to start with error:
Gateway enters crash loop with auto-restart attempts.
OpenClaw version
2026.3.14
Operating system
macOS 25.3.0 (arm64)
Install method
pnpm dev (moltbot workspace)
Model
friday/MiniMax-M2.5
Provider / routing chain
local moltbot workspace
Config file / key location
No response
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
Root Cause:
iMessage extension uses
import ... from "openclaw/plugin-sdk/..."but cannot resolve the 'openclaw' package in pnpm workspace environment.Suggested Fix:
Add self-reference to moltbot/package.json:
{ "dependencies": { "openclaw": "workspace:*" } }Temporary Workaround:
Set
channels.imessage.enabled: falseto prevent crash loop.