Repository navigation
Description
Summary
After upgrading/restarting the macOS app to 2026.5.26, the app repeatedly shows the same Allow node to connect? approval prompt for an already-paired node.
In one observed restart/reconnect cycle, the same laptop node prompt appeared twice immediately after restart, then a third time shortly after.
Environment
- OpenClaw gateway:
2026.5.26 (10ad3aa) - macOS app showing prompt:
2026.5.26 - Node shown in prompt:
- Name:
Richard's MacBook Pro M4 Max - Node ID:
cc29297fbca0-cace5aa858d634196188b6b-b58ae644a8d4a74361a7116fee0a0 - Platform:
macOS 26.5 - App:
2026.5.26 - IP:
100.91.254.107
- Name:
- Account setup includes other paired nodes, but this prompt was for the same laptop node each time.
What happened
- Upgrade completed to OpenClaw 2026.5.26.
- The laptop macOS app/node was restarted/reconnected.
- The macOS app displayed
Allow node to connect?forRichard's MacBook Pro M4 Max. - The same approval prompt appeared multiple times for the same node:
- twice immediately after restart
- a third time shortly after
The prompt had the expected buttons: Approve Node, Not Now, and Reject.
Expected behavior
An already-paired node should reconnect without repeatedly asking for node-pair approval.
If approval is truly required again after an upgrade/restart, the UI should show at most one active approval prompt for the node and should retire/deduplicate stale requests once the node is approved.
Observed state/checks
Before seeing the duplicate/triplicate prompt:
openclaw nodes describe --node aceworked.openclaw nodes listeventually returned normally after earlier reconnect churn.- Pending node pairings were reported as
0. - Paired nodes were reported as
3. - The laptop node was shown as paired/connected.
Gateway logs around the upgrade/reconnect showed node pairing approval activity and reconnect churn. There was also an earlier stale control UI on 2026.5.20 repeatedly sending approvals for unknown request IDs before the 2026.5.26 upgrade completed, but the duplicate prompt reproduced after the app restart on 2026.5.26.
This appears to be duplicate/stale node-pair approval presentation for the same already-known node, not exec approval prompts and not multiple devices.
Impact
The user is asked to repeatedly approve a node that should already be trusted, which makes normal macOS app restart/reconnect feel like a new-device/security event and erodes confidence in the pairing state.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
WarrenJones commentedon May 27, 2026
clawsweeper commentedon May 27, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Current main fixes the repeated already-paired macOS node approval prompt by reconciling paired-node reconnects before creating new pairing requests and clearing stale same-node pending reapproval after a successful hello; the fix is merged and shipped in v2026.6.8-beta.1.
I found the merged PR that appears to have closed this: #92547: fix(nodes): surface pending reapproval diagnostics.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the current gateway-side reconnect cleanup and reapproval diagnostics behavior; reopen only with a repro against v2026.6.8-beta.1 or later showing same-surface prompts still appear.
Do we have a high-confidence way to reproduce the issue?
No current-main failure path remains. The historical 2026.5.26 and 2026.5.28-beta reports reproduced the prompt loop, and current source plus regression coverage now show same-surface paired-node reconnects clear stale pending prompts instead of creating another approval.
Is this the best way to solve the issue?
Yes. Fixing this at the gateway reconnect and cleanup boundary is the best shape because it suppresses stale same-surface prompts without auto-approving expanded commands, capabilities, or permissions.
Security review:
Security review: This is a non-PR issue cleanup; no patch security or supply-chain review applies, and the implemented path preserves explicit reapproval for expanded node surfaces.
AGENTS.md: found and applied where relevant.
What I checked:
shouldClearPendingPairings: true. (src/gateway/node-connect-reconcile.ts:173, 1db8ab373422)node.pair.resolvedfor cleared stale requests. (src/gateway/server/ws-connection/message-handler.ts:1672, 1db8ab373422)beginNodePairingConnectclaims pending revisions for the paired node andfinalizeNodePairingCleanupClaimdeletes only still-matching claimed revisions, so stale prompts are retired without dropping newer or changed-surface approval requests. (src/infra/node-pairing.ts:364, 1db8ab373422)src/gateway/server.node-pairing-authz.test.ts:456, 1db8ab373422)Likely related people:
fix(nodes): defer stale pairing cleanupcommit that changed the websocket reconnect cleanup path. (role: fix author; confidence: high; commits: 65b460f2345a, 0d06b277b256, a1721524fbec; files:src/gateway/node-connect-reconcile.ts,src/infra/node-pairing.ts,src/gateway/server/ws-connection/message-handler.ts)src/gateway/node-reapproval-coordinator.ts,src/infra/node-pairing.ts,src/gateway/server.node-pairing-authz.test.ts)src/gateway/node-connect-reconcile.ts,src/gateway/server.node-pairing-authz.test.ts)Codex review notes: model internal, reasoning high; reviewed against 1db8ab373422; fix evidence: merged PR #92547, release v2026.6.8-beta.1, commit 65b460f2345a.
zhanghenglim commentedon May 30, 2026
Additional live repro from 2026.5.28-beta.4:
Environment:
OpenClaw 2026.5.28-beta.4 (b717704)2026.5.27(CFBundleVersion=2026052790)26.5 (25F71)/opt/homebrew/lib/node_modules/openclawObserved behavior:
openclaw nodes pending --jsonreturns[].openclaw nodes status --jsonreports the same node aspaired: trueandconnected: true./Applications/OpenClaw.app.Allow node to connect?for the same node id/display name.openclaw nodes statusstill reports the same node as already paired/connected.I also tested removing the node entry from
~/.openclaw/nodes/paired.json, reopening the app, and manually approving the new prompt. The node paired successfully, but the prompt returned again on the next app relaunch. So this does not look like a corrupt stale pairing record.Suspected cause:
requestNodePairing()indist/node-pairing-*.jsreconciles only existing pending requests for a node.state.pairedByNodeId[nodeId]already exists.node.pair.requestfrom an already-paired macOS app node can create another pending approval request.Local mitigation tested:
state.pairedByNodeId[nodeId]exists and the incoming request has the same approval surface (capsandcommands), refresh paired node metadata and remove pending requests for that node instead of creating a new pending approval.After applying that local mitigation and restarting the gateway, I relaunched the macOS app twice:
openclaw nodes pending --jsonstayed[]node.pair.approveappeared in the gateway logpaired: true,connected: trueThis seems like it can be fixed safely on the gateway side without auto-approving expanded node capabilities.