Repository navigation
Closed
Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
I want to connect the companion app for windows. It told me to run openclaw nodes approve 57511973-c922-444a-b5a6-d689fc6ea364 on the gateway. When running it on the gateway I got this error. This error doesn`t mean anything to me. It looks like a defekt, but it might be not.
[openclaw ~ ]# openclaw nodes approve 57511973-c922-444a-b5a6-d689fc6ea364
│
◇
OpenClaw 2026.6.5 (5181e4f) — Gateway online—please keep hands, feet, and appendages inside the shell at all times.
│
◇
│
◇
nodes approve failed: GatewayClientRequestError: unknown requestId
Steps to reproduce
- Connect Windows Companion App
- Run node approval on Gateway
Expected behavior
Unclear: Bugfix or better error message.
Actual behavior
Error: nodes approve failed: GatewayClientRequestError: unknown requestId
OpenClaw version
2026.6.5 (5181e4f)
Operating system
Install method
corepack pnpm
Model
n.a.
Provider / routing chain
companion app -> kubectl port forward (kubectl port-forward --address 127.0.0.1 -n openclaw deployment/openclaw 18790:18789) > gateway
Additional provider/model setup details
n.a.
Logs, screenshots, and evidence
Impact and severity
Affected users
Severity blocks workflow
Frequency always
Consequence failed onboarding
Additional information
No response
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Activity
[-][Bug]:[/-][+][Bug]: nodes approve failed: GatewayClientRequestError: unknown requestId[/+]ibcorreaai-oss commentedon Jun 17, 2026
The pairing store in 2026.6.5 is disk-backed per state dir, not shared in-memory.
requestNodePairing()writes the request to<stateDir>/nodes/pending.json, andnode.pair.approve→approveNodePairing(requestId)reloads that same file and returns "unknown requestId" when the key is missing (seenode-pairing-*.js/pairing-token-*.js;resolveStateDirkeys offOPENCLAW_STATE_DIR/$HOME).With
kubectl port-forwardin front of the gateway, the most likely cause is that the Companion App's pairing connect landed on a different gateway replica/process (or a different container filesystem /$HOME) than the one youropenclaw nodes approvereached, so that process'spending.jsongenuinely has no such requestId. There is also a 5-minute TTL (PENDING_TTL_MS = 300000) thatloadState()prunes on every read, so approving more than 5 minutes after the id is shown produces the same error even on a single instance.Workaround:
ReadWriteManyvolume at the state dir on every replica and setOPENCLAW_STATE_DIRidentically on all pods and wherever the CLI runs.kubectl execinto the same pod that received the pairing connect (not a sibling replica) and run the approve there.openclaw nodes pendingimmediately before approving, and approve within 5 minutes.Product nit: the approve error could distinguish "expired" vs "not found on this instance" so operators can tell a stale id from a routing/state-dir mismatch.
xrow commentedon Jun 17, 2026
@ibcorreaai-oss TY, but I have a single replica and I see the pending node. Your workaround is not valid for my case.
clawsweeper commentedon Jun 17, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 8:20 PM ET / 00:20 UTC.
Summary
Keep open: current main and the latest release still expose the raw
nodes approve failed: GatewayClientRequestError: unknown requestIdpath, and the focused open fix candidate at #94452 uses closing syntax for this issue.Reproducibility: yes. at source level: current main returns
unknown requestIdfromnode.pair.approvewhen the pending ID is missing, and the nodes CLI wrapper can render that raw gateway error. I did not live-run the full Windows Companion plus Kubernetes port-forward setup.Root-cause cluster
Relationship:
canonicalCanonical: #94040
Summary: This issue is the canonical report for the nodes approval
unknown requestIdonboarding failure; the focused CLI translation PR is the strongest current fix candidate, while broader gateway idempotency remains adjacent.Members:
fixed_by_candidate: fix #94040: [Bug]: nodes approve failed: GatewayClientRequestError: unknown requestId #94452 - Open PR with closing syntax that directly targets theopenclaw nodes approveraw error rendering and includes after-fix CLI proof.partial_overlap: feat: make node.pair.approve idempotent for already-paired nodes (fix… #94532 - Open PR with closing syntax that proposes broader gateway idempotency for already-paired nodes, changing a different layer and approval semantics.superseded: fix(cli): improve error message for unknown requestId in devices approve #94055 - Closed unmerged PR overlapped unknown-requestId messaging but targeted devices and unrelated Matrix surfaces rather than the focused nodes approval path.superseded: fix(nodes): add actionable hint for 'unknown requestId' pairing error #94115 - Closed unmerged PR targeted the same symptom with a smaller hint-style change but lacks the stronger current candidate path.superseded: fix(nodes): show pending requestIds when approve fails with unknown requestId #95001 - Closed unmerged PR attempted a similar nodes CLI hint after the focused open PR already existed.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
No new repair job should be queued because open linked PRs already use closing syntax; maintainers should review or close the existing candidates first.
Review details
Best possible solution:
Review and land or reject #94452 as the focused nodes CLI recovery fix, and keep any gateway idempotency semantics as separate maintainer-reviewed work.
Do we have a high-confidence way to reproduce the issue?
Yes, at source level: current main returns
unknown requestIdfromnode.pair.approvewhen the pending ID is missing, and the nodes CLI wrapper can render that raw gateway error. I did not live-run the full Windows Companion plus Kubernetes port-forward setup.Is this the best way to solve the issue?
Yes for the immediate operator-facing bug: translating the exact gateway stale-request response in the nodes CLI is narrower than changing gateway approval or token semantics. The broader idempotency idea should stay separate unless maintainers explicitly choose that contract.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 1f6ae32cabb9.
Label changes
Label justifications:
P2: The issue blocks a node/companion onboarding approval path but is limited to the nodes CLI and gateway pairing surface.impact:auth-provider: The failure is in node pairing approval, which controls whether the companion node is authorized.Evidence reviewed
What I checked:
openclaw nodes approveresolves approval scopes and callsnode.pair.approvedirectly; there is no current-main translation for stale or unknown request IDs before the shared error wrapper handles the failure. (src/cli/nodes-cli/register.pairing.ts:108, 1f6ae32cabb9)runNodesCommandstringifies caught errors asnodes <label> failed: <message>, matching the reported raw CLI error shape. (src/cli/nodes-cli/cli-utils.ts:22, 1f6ae32cabb9)node.pair.approvereturnsINVALID_REQUESTwith messageunknown requestIdwhenapproveNodePairingcannot approve the pending ID. (src/gateway/server-methods/nodes.ts:953, 1f6ae32cabb9)approveNodePairingreturn null, which feeds the gateway error above. (src/infra/node-pairing.ts:103, 1f6ae32cabb9)openclaw nodes pendingthenopenclaw nodes approve <requestId>workflow and state that pending requests expire automatically after five minutes. Public docs:docs/gateway/pairing.md. (docs/gateway/pairing.md:33, 1f6ae32cabb9)v2026.6.9still has the same direct CLI approve call and gatewayunknown requestIdresponse, so this is not fixed in the latest release. (src/cli/nodes-cli/register.pairing.ts:108, c645ec4555c0)Likely related people:
approveNodePairinghelper maps to commitc6386178973d05008eadc3923596b40fe1a5581f. (role: recent area contributor; confidence: medium; commits: c6386178973d; files:src/cli/nodes-cli/register.pairing.ts,src/cli/nodes-cli/cli-utils.ts,src/gateway/server-methods/nodes.ts)src/infra/node-pairing.ts,src/gateway/server-methods/nodes.ts,docs/gateway/pairing.md)src/gateway/server-methods/nodes.ts,src/infra/node-pairing.ts,src/gateway/server.node-pairing-authz.test.ts)src/cli/program.nodes-basic.e2e.test.ts,src/gateway/server-methods/nodes.ts,src/infra/node-pairing.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix #94040: [Bug]: nodes approve failed: GatewayClientRequestError: u…
steipete commentedon Jun 26, 2026
Fixed on
mainby #94452 indeb0ffdcdf92.Verification covered stale IDs, approval-time races, unavailable list fallback, remote connection guidance, and 47 focused tests, followed by green exact-head hosted CI.
fix openclaw#94040: [Bug]: nodes approve failed: GatewayClientRequest…
fix openclaw#94040: [Bug]: nodes approve failed: GatewayClientRequest…
fix openclaw#94040: [Bug]: nodes approve failed: GatewayClientRequest…
fix openclaw#94040: [Bug]: nodes approve failed: GatewayClientRequest…