Skip to content

[Bug]: OpenClaw Upgrade Bug Report: 2026.5.27 → 2026.6.5 #92366

Closed as not planned

Description

@Auskadi

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

  1. Install OpenClaw 2026.5.27 with WhatsApp enabled
  2. Verify WhatsApp auto-reply working
  3. Upgrade to 2026.6.5: npm install -g openclaw@2026.6.5
  4. Restart gateway
  5. Send test message via WhatsApp
  6. Expected: Agent runs and replies
  7. 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

  1. Identified socket leak: Killed claw-lens-cli (PID 250661)
  2. Uninstalled 2026.6.5: npm uninstall -g openclaw
  3. Installed 2026.5.27: npm install -g openclaw@2026.5.27
  4. Restored config: Used May 31 backup (openclaw.json.bak-slot-test)
  5. Cleaned plugins: Removed sensenova-skills, openclaw-honcho references
  6. Cleared sessions: Removed corrupted 200KB+ session files
  7. Verified: WhatsApp auto-reply functional at 09:12:52


Related Issues


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

  1. Start state: OpenClaw 2026.5.27 with WhatsApp enabled and verified working (auto-reply responds to messages)
  2. Upgrade: npm install -g openclaw@2026.6.5
  3. Restart: systemctl --user restart openclaw-gateway.service
  4. Send WhatsApp message from configured allowlist number to the WhatsApp account
  5. 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

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 kill

Impact 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)

Activity

  1. clawsweeper commented on Jun 12, 2026

    @clawsweeper
    Contributor

    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 isError payload 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:

    • Root policy read: Root AGENTS.md was read fully, and its review, channel/plugin, config compatibility, and duplicate-cleanup guidance was applied. (AGENTS.md:1, eaeedbf1f96b)
    • Canonical remaining WhatsApp stall issue: The older open canonical issue covers the same remaining user-visible shape: WhatsApp sessions stall during active model calls, queued messages accumulate, and no useful reply reaches the user; it also has recent additional 2026.6.x production evidence.
    • Open PR owns the narrow WhatsApp delivery-suppression fix: The open PR targets the final-error-payload delivery path for the canonical WhatsApp stall issue and changes the same WhatsApp dispatcher/outbound files that still suppress error payloads on current main. (c0c2be91d1dd)
    • Current main still suppresses final WhatsApp error payloads: Current main drops every payload.isError === true before 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)
    • Current main also suppresses routed WhatsApp error payloads: The WhatsApp outbound adapter returns an empty message id for isError payloads, and current tests still encode that suppression. (extensions/whatsapp/src/outbound-base.ts:235, eaeedbf1f96b)
    • Rollback recovery path exists in current main: The future-config guard now allows a single-command intentional older-binary recovery override via 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:

    • NianJiuZst: Authored the open PR that targets final WhatsApp error-payload delivery for the canonical WhatsApp stall issue. (role: open fix author for canonical WhatsApp delivery path; confidence: high; commits: c0c2be91d1dd; files: extensions/whatsapp/src/auto-reply/monitor/inbound-dispatch.ts, extensions/whatsapp/src/outbound-base.ts)
    • itsuzef: Authored the merged successor-controller fix for captured WhatsApp replies after restart, which is related but narrower than this report's remaining session-stall behavior. (role: adjacent WhatsApp restart-reply contributor; confidence: medium; commits: 9210d8f7d99f; files: extensions/whatsapp/src/inbound/monitor.ts, extensions/whatsapp/src/connection-controller.ts, extensions/whatsapp/src/connection-controller-registry.ts)
    • mcaxtr: Added successor media handoff coverage and merged the related WhatsApp successor-controller recovery work. (role: recent adjacent WhatsApp contributor and merger; confidence: medium; commits: 5df8c79654d5, 9210d8f7d99f; files: extensions/whatsapp/src/monitor-inbox.streams-inbound-messages.test-support.ts, extensions/whatsapp/src/inbound/monitor.ts)
    • yetval: Authored the merged reply-queue identity-removal fix included in the latest release's agent/session recovery cluster, adjacent to queued message loss under bursts. (role: recent reply-queue contributor; confidence: medium; commits: 380fd04ca317, 47fc1c288b83; files: src/utils/queue-helpers.ts, src/auto-reply/reply/queue/drain.ts)
    • joshavant: Authored the merged stale main-session startup recovery fix included in the latest release's session recovery cluster. (role: recent session recovery contributor; confidence: medium; commits: 9c799c541dcf, e1978cf73cbd; files: src/agents/main-session-restart-recovery.ts, src/gateway/server-startup-post-attach.ts)

    Codex review notes: model internal, reasoning high; reviewed against eaeedbf1f96b.

  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jun 12, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions