Skip to content

[Bug]: WhatsApp Native Channel connects but registered state remains false (Silent Failure) #97060

Closed as not planned

Description

@bernardoparus-ia

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Description
When attempting to link a WhatsApp number using the native OpenClaw channel (openclaw channels login --channel whatsapp), the pairing process completes successfully (QR code scanned, terminal outputs ✅ Linked!). However, the bot does not receive any messages.

Inspecting the creds.json file reveals that the registered flag is persistently set to false. The openclaw-darr service logs show that the WebSockets transport is connected and heartbeat packets are exchanged, but messagesHandled: 0 and lastInboundAt: null.

This leads to a silent failure state where the bot appears connected but is completely muted.

Steps to reproduce

Ensure no previous session exists (rm -rf ~/.openclaw/credentials/whatsapp/default/).
Run openclaw channels login --channel whatsapp.
Scan the QR code using the WhatsApp app on the phone.
Terminal outputs ✅ Linked!.
Check the creds.json file in ~/.openclaw/credentials/whatsapp/default/.
See "registered": false.
Send a message to the bot's WhatsApp number. The message is never handled by the bot.

Expected behavior

The registered flag in creds.json should switch to true upon successful QR code pairing, and the bot should receive and handle incoming messages.

Actual behavior

The registered flag in creds.json should switch to true upon successful QR code pairing, and the bot should receive and handle incoming messages.

OpenClaw version

2026.6.9 & 2026.6.10 v22.22.2

Operating system

Ubuntu (Hostinger VPS)

Install method

No response

Model

gemini 3.1 pro

Provider / routing chain

hostinger

Additional provider/model setup details

@whiskeysockets/baileys updated to the latest available via npm update.

Restarted the openclaw gateway.
Removed session folders and re-paired multiple times.
Ensured firewall rules are not blocking WebSocket traffic.
Updated @whiskeysockets/baileys directly within the openclaw node_modules.
Executed openclaw doctor --fix which completed successfully but did not resolve the registration failure.
Verified that the number works properly on other WhatsApp Web instances (it does).

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

The account was previously used with Evolution API, but that instance was completely deleted prior to attempting the native OpenClaw pairing. The issue persists regardless of whether it's a Business (smba) or Personal (android) account type. The transport layer connects fine, but the application layer registration is rejected or fails to sa

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 12:40 PM ET / 16:40 UTC.

    Summary
    Keep open: the report describes a current-release WhatsApp QR login state where OpenClaw can say linked while inbound delivery never starts, and current main still treats parseable persisted WhatsApp creds as linked without proving the completed app-layer registration state.

    Reproducibility: no. high-confidence live reproduction was established in this read-only review. Source inspection does reproduce the risky state classification: current main and v2026.6.10 can treat parseable WhatsApp creds as linked even though the exact QR registered:false failure still needs redacted logs or live proof.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    Manual WhatsApp auth/session review is needed because the issue needs live QR-pairing proof and a maintainer policy choice before any automated repair should rewrite credential-readiness behavior.

    Review details

    Best possible solution:

    Verify the latest-release QR path with redacted live WhatsApp diagnostics, then tighten WhatsApp-owned auth readiness and recovery so incomplete persisted credentials are not reported as a healthy linked session.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence live reproduction was established in this read-only review. Source inspection does reproduce the risky state classification: current main and v2026.6.10 can treat parseable WhatsApp creds as linked even though the exact QR registered:false failure still needs redacted logs or live proof.

    Is this the best way to solve the issue?

    Unclear as a final implementation choice. The likely direction is a WhatsApp-owned readiness/recovery fix for incomplete credentials, but maintainers need live Baileys evidence before choosing whether to use richer credential-shape validation, cleanup, recovery, or diagnostics.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The report has no redacted gateway diagnostics export, status probe output, or sanitized full credential shape, so the exact live failure could still be QR finalization, WhatsApp account conflict, access-policy routing, or Baileys inbound event delivery.
    • Baileys v7.0.0-rc13 does not make registered:true a reliable QR-pairing success signal in the inspected QR helper, so a fix should not blindly gate QR readiness on that flag without live WhatsApp proof.
    • The likely repair overlaps open WhatsApp phone-code/partial-credential and inbound-loss work, so starting a competing automated fix PR would risk picking the wrong auth/session policy.

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

    Label changes

    Label justifications:

    • P1: The report affects a latest-release WhatsApp login flow that appears successful but leaves a real channel unable to receive messages.
    • impact:message-loss: The reported user-visible failure is that inbound WhatsApp messages are never handled after linking.
    • impact:session-state: The report centers on persisted WhatsApp credential/session state staying incomplete while OpenClaw reports the channel linked.
    • impact:auth-provider: The affected surface is WhatsApp channel pairing, auth readiness, and saved WhatsApp Web credentials.
    Evidence reviewed

    What I checked:

    • Repository policy read and applied: Root AGENTS.md was read fully, and extensions/AGENTS.md was read for the bundled plugin boundary; the review applied the auth/session-state, channel-delivery, dependency-contract, and live-proof guidance. (AGENTS.md:1, 1cd6f81a46ae)
    • Live issue context: The live issue body reports v2026.6.9 and v2026.6.10 printing the WhatsApp login success message while creds.json stays registered:false, heartbeat shows messagesHandled:0 and lastInboundAt:null, and no messages are handled.
    • Current auth readiness accepts parseable creds: webAuthExists returns true after JSON.parse(raw) succeeds; it does not inspect registered, account, me, signalIdentities, or other completed-pairing fields before reporting linked auth. (extensions/whatsapp/src/auth-store.ts:107, 1cd6f81a46ae)
    • Login success gate uses persisted-auth existence: After the socket opens, waitForWhatsAppLoginResult requires only readWebAuthExistsForDecision(...).exists; because that helper is backed by parseable creds, an incomplete but parseable auth file can satisfy the success gate from source inspection. (extensions/whatsapp/src/connection-controller.ts:267, 1cd6f81a46ae)
    • QR wait path prints the reported success message: waitForWebLogin returns connected:true and the exact ✅ Linked! WhatsApp is ready. message when the active login marks login.connected, matching the reporter's observed terminal state. (extensions/whatsapp/src/login-qr.ts:547, 1cd6f81a46ae)
    • Latest release has the same readiness shape: Tag v2026.6.10 contains the same parseable-creds auth existence check and the same post-open persisted-auth success gate, so this report is not already fixed in the latest release. (extensions/whatsapp/src/auth-store.ts:107, aa69b12d0086)

    Likely related people:

    • mcaxtr: Merged refactor(whatsapp): centralize account connection lifecycle #65427, which centralized WhatsApp account connection lifecycle across login, QR login, listener state, reconnect, and auth recovery paths directly adjacent to this report. (role: WhatsApp auth/session lifecycle contributor; confidence: high; commits: aa023e428306; files: extensions/whatsapp/src/connection-controller.ts, extensions/whatsapp/src/login.ts, extensions/whatsapp/src/login-qr.ts)
    • asyncjason: Authored the merged WhatsApp 515 pairing recovery PR referenced by the related context; that recovery path is the closest existing implementation for partial QR-pairing finalization symptoms. (role: WhatsApp 515 recovery contributor; confidence: high; commits: 9d3e653ec9d2; files: extensions/whatsapp/src/connection-controller.ts, extensions/whatsapp/src/login.ts, extensions/whatsapp/src/login-qr.ts)
    • scoootscooob: Moved the WhatsApp implementation into extensions/, which is relevant routing context because any auth-readiness fix belongs in the WhatsApp plugin boundary rather than generic core unless a missing API is proven. (role: WhatsApp plugin boundary contributor; confidence: medium; commits: 16505718e827; files: extensions/whatsapp/src/auth-store.ts, extensions/whatsapp/src/login.ts, extensions/whatsapp/src/login-qr.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  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.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm 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.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 26, 2026
  3. openclaw-barnacle commented on Jul 11, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  4. openclaw-barnacle commented on Jul 19, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  5. locked as resolved and limited conversation to collaborators on Sep 11, 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 workingbug:behaviorIncorrect behavior without a crashclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions