Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
OpenClaw Upgrade Bug Report: 2026.5.27 → 2026.6.5
Date: 2026-06-11
Reporter: Martin Hardie (+67077668192)
Affected Versions: 2026.6.5 (stable), 2026.6.6-beta.1
Working Version: 2026.5.27
Status: Rolled back to 2026.5.27, awaiting 2026.6.6 stable
Executive Summary
Attempted upgrade from OpenClaw 2026.5.27 to 2026.6.5 resulted in complete WhatsApp integration failure. Auto-trigger mechanism broken, sessions accumulated messages without triggering agent runs, and configuration compatibility issues prevented rollback. Required full reinstall and restoration from May 31 backup.
Issues Encountered
1. CRITICAL: WhatsApp Auto-Trigger Bug (Regression)
Symptom: Messages arrive via WhatsApp but trigger 0 agent runs.
Evidence:
Session files grew to 200KB+ with 38+ messages but 0 agent runs triggered.
Agent bootstrap loaded but never started runs.
Impact: Complete loss of WhatsApp functionality — the primary interface.
Root Cause: Unknown — appears to be in the session controller trigger logic introduced in 2026.6.x.
Reference: Fix #85823 ("keep WhatsApp captured replies attached to successor controller after restart") in 2026.6.6-beta.1 may be related, but issue persists in 2026.6.5 stable.
2. Config Version Compatibility Check (Blocking Rollback)
Symptom: After downgrading from 2026.6.5 to 2025.5.27, gateway refuses to start.
Error:
Version check: Refuses start if config.lastTouchedVersion > binary version (status 78)
Root Cause: Safety check prevents starting older binary with newer config. Config had "lastTouchedVersion": "2026.6.5" which 2026.5.27 binary rejected.
Workaround Required:
- June 11 backup captured workspace files but NOT openclaw.json
- Had to restore openclaw.json from May 31 backup (pre-2026.6.x)
- Lost all config changes between May 31 and June 11
Suggested Fix: Version check should allow override flag or graceful degradation, not hard failure.
3. Stalled Session Detection Warnings
Symptom: Diagnostic warnings about sessions with queueDepth > 0 but activeWorkKind=none.
Log Evidence:
long-running session: sessionId=d229ddc5-c78c-410d-9a6b-6b253d5cf7ac
state=processing age=126s queueDepth=2
reason=queued_behind_active_work classification=long_running
activeWorkKind=model_call lastProgress=model_call:started
Impact: Sessions stuck indefinitely, requiring manual intervention or systemd kill.
4. Ancillary Issues During Recovery
Socket Leak (claw-lens-cli):
- Process PID 250661 leaked 28,230 CLOSE-WAIT sockets
- Exhausted ephemeral ports causing EADDRNOTAVAIL errors
- Had to kill process and remove package entirely
Plugin Conflicts:
- sensenova-skills: hooks failing after version mismatch
- openclaw-honcho: session cleanup issues
- skill-workshop: 30s timeouts on agent_end handler even after uninstall
Reproduction Steps
- Install OpenClaw 2026.5.27 with WhatsApp enabled
- Verify WhatsApp auto-reply working
- Upgrade to 2026.6.5:
npm install -g openclaw@2026.6.5 - Restart gateway
- Send test message via WhatsApp
- Expected: Agent runs and replies
- Actual: Message logged, session created, 0 runs triggered
Environment
OpenClaw Version: 2026.5.27 (current, after rollback)
Node Version: 22.22.0
Gateway Port: 18789 (loopback)
OS: Linux 6.12.90+deb13.1-amd64
WhatsApp Accounts: "patrick" (+67075428151), "default" (disabled)
Primary Model: deepseek/deepseek-chat
Fallback: xiaomi/mimo-v2-omni
Recovery Process
- Identified socket leak: Killed claw-lens-cli (PID 250661)
- Uninstalled 2026.6.5:
npm uninstall -g openclaw - Installed 2026.5.27:
npm install -g openclaw@2026.5.27 - Restored config: Used May 31 backup (openclaw.json.bak-slot-test)
- Cleaned plugins: Removed sensenova-skills, openclaw-honcho references
- Cleared sessions: Removed corrupted 200KB+ session files
- Verified: WhatsApp auto-reply functional at 09:12:52
Related Issues
- Fix fix(whatsapp): route captured replies through successor controller after restart #85823: "keep WhatsApp captured replies attached to successor controller after restart" (in 2026.6.6-beta.1)
- systemd service timeout during graceful stop (5min drain → hard kill)
- hot-reload not applying channel policy changes without restart
Attachments
- Pre-update backup:
~/.openclaw/pre-update-backup-20260611-075540/ - Session logs:
~/.openclaw/agents/main/sessions/ - Config backup used:
openclaw.json.bak-slot-test(May 31)
Labels: bug, regression, whatsapp, upgrade-blocker, critical
Priority: P0 — prevents use of latest stable version
Cc: @openclaw-maintainers
Steps to reproduce
Steps to Reproduce
- Start state: OpenClaw 2026.5.27 with WhatsApp enabled and verified working (auto-reply responds to messages)
- Upgrade:
npm install -g openclaw@2026.6.5 - Restart:
systemctl --user restart openclaw-gateway.service - Send WhatsApp message from configured allowlist number to the WhatsApp account
- Observe:
- Message appears in logs:
[whatsapp] Inbound message +67077668192 -> +67075428151 - Session file created/updated in
~/.openclaw/agents/main/sessions/ - No agent run triggered (0 runs, session grows with messages but no completions)
- No reply sent to WhatsApp
- Message appears in logs:
Deterministic: Reproduced 3 times (June 11 upgrade attempt, June 4 prior attempt, and verification after rollback)
Expected behavior
Expected behavior In 2026.5.27, when a WhatsApp message was received from an allowlisted number, the agent triggered a run, processed the message, and sent a reply ba
ck to WhatsApp. This was verified working at 09:12:52 on 2026-06-11 before the upgrade.
Actual behavior
Actual behavior Messages are received and logged ([whatsapp] Inbound message +67077668192 -> +67075428151), session files are created and grow to 200KB+ with 38+ mess
ages, but 0 agent runs are triggered. No replies are sent. Gateway logs show session state=processing age=126s queueDepth=2 with activeWorkKind=none indefinitely.
OpenClaw version
OpenClaw version 2026.6.5
Operating system
Operating system Linux 6.12.90+deb13.1-amd64
Install method
Install method npm global (via nvm v22.22.0)
Model
Model deepseek/deepseek-chat v4
Provider / routing chain
Provider / routing chain openclaw gateway -> deepseek API
Additional provider/model setup details
Additional provider/model setup details WhatsApp channel enabled with "patrick" account configured. Session files stored in ~/.openclaw/agents/main/sessions/. Config
includes model fallbacks to xiaomi/mimo-v2-omni. Gateway running on port 18789 (loopback).
Logs, screenshots, and evidence
Logs, screenshots, and evidence
• Session file d229ddc5-c78c-410d-9a6b-6b253d5cf7ac.jsonl showing 38 messages, 0 runs, 200KB+ size
• Gateway logs showing agent/embedded bootstrap but no model.completed events
• Diagnostic warnings: long-running session: queueDepth=2 activeWorkKind=none lastProgress=model_call:started
• Systemd logs showing gateway restart with 300s drain timeout before hard killImpact and severity
Impact and severity
• Affected: WhatsApp users relying on auto-reply functionality (primary interface)
• Severity: Critical (completely blocks workflow - no agent responses possible)
• Frequency: Always (4/4 observed attempts on 2026.6.5, reproduced on June 4 and June 11)
• Consequence: Complete loss of WhatsApp integration; users must roll back to 2026.5.27 and restore from pre-2026.6.x config backups
Additional information
Additional information
• Last known good: 2026.5.27 (verified working 2026-06-11 09:12:52)
• First known bad: 2026.6.5 (stable)
• Related fix: #85823 ("keep WhatsApp captured replies attached to successor controller after restart") in 2026.6.6-beta.1 may address this
• Workaround: Full reinstall of 2026.5.27 with config restored from May 31 backup (pre-2026.6.x metadata)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 12, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as superseded: the remaining WhatsApp no-reply/session-stall behavior is already tracked by the older canonical WhatsApp session issue and its open fix PR, while the rollback and plugin-update subproblems now have separate current tracking or documented recovery paths.
Canonical path: Keep #84569 as the canonical WhatsApp session-stall/final-error-delivery tracker, review #84578 for the narrow delivery fix, and use #92546 for the separate WhatsApp credential-wipe update symptom.
So I’m closing this here and keeping the remaining discussion on #84569, #84578, and #92546.
Review details
Best possible solution:
Keep #84569 as the canonical WhatsApp session-stall/final-error-delivery tracker, review #84578 for the narrow delivery fix, and use #92546 for the separate WhatsApp credential-wipe update symptom.
Do we have a high-confidence way to reproduce the issue?
Partly. The exact upgrade incident was not live-reproduced, but the remaining WhatsApp silence path is source-reproducible on current main through final
isErrorpayload suppression in the WhatsApp dispatcher and outbound adapter; the socket leak and third-party hooks prevent high-confidence reproduction of the whole incident from this report alone.Is this the best way to solve the issue?
Yes for cleanup. Closing this broad incident as superseded is the best repository hygiene because the remaining actionable behavior is already owned by canonical open WhatsApp/session issues and a focused PR, while rollback and credential-update symptoms have separate recovery or tracking.
Security review:
Security review: Issue triage only; no patch security or supply-chain review applies.
AGENTS.md: found and applied where relevant.
What I checked:
AGENTS.md:1, eaeedbf1f96b)payload.isError === truebefore the WhatsApp delivery kind is considered, matching the canonical delivery-loss path rather than leaving this broad upgrade issue as the right owner. (extensions/whatsapp/src/auto-reply/monitor/inbound-dispatch.ts:157, eaeedbf1f96b)isErrorpayloads, and current tests still encode that suppression. (extensions/whatsapp/src/outbound-base.ts:235, eaeedbf1f96b)OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS, and the public troubleshooting docs document the same recovery path. (src/config/future-version-guard.ts:47, eaeedbf1f96b)Likely related people:
extensions/whatsapp/src/auto-reply/monitor/inbound-dispatch.ts,extensions/whatsapp/src/outbound-base.ts)extensions/whatsapp/src/inbound/monitor.ts,extensions/whatsapp/src/connection-controller.ts,extensions/whatsapp/src/connection-controller-registry.ts)extensions/whatsapp/src/monitor-inbox.streams-inbound-messages.test-support.ts,extensions/whatsapp/src/inbound/monitor.ts)src/utils/queue-helpers.ts,src/auto-reply/reply/queue/drain.ts)src/agents/main-session-restart-recovery.ts,src/gateway/server-startup-post-attach.ts)Codex review notes: model internal, reasoning high; reviewed against eaeedbf1f96b.