- agent:main:discord:channel:1495910797333893184 (17m ago)
- agent:main:discord:direct:1315374465282084915 (27m ago)
gateway connect failed: GatewayClientRequestError: scope upgrade pending approval (requestId: d6e86222-4583-4f4c-98f1-a3d5f1e37c24)
โ
โ Device pairing โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ - Pending scope upgrade d6e86222-4583-4f4c-98f1-a3d5f1e37c24 for โ
โ gateway:device.pair.list โ
โ (e0d174faa08fc39393e869ddf365d3d9b079cdd97b08c2cafd6aa9fe5ca6c77d): approved scopes โ
โ [operator.read], requested scopes [operator.pairing]. Review with openclaw devices โ
โ list, then approve with openclaw devices approve d6e86222-4583-4f4c-98f1-a3d5f1e37c24. โ
โ
#Request Device pairing
1 messages ยท Page 1 of 1 (latest)
This is a scope-upgrade approval, not a generic auth failure.
Your device currently has only operator.read, but pairing actions need operator.pairing, so approve the pending request on the gateway host:
openclaw --version
openclaw devices list
openclaw devices approve d6e86222-4583-4f4c-98f1-a3d5f1e37c24
A couple gotchas:
- run that locally on the gateway machine if you can
devices approveneedsoperator.pairingoroperator.admin- if the device retried, the old request can get superseded, so check
openclaw devices listfirst and approve the current exactrequestId
Docs:
- https://docs.openclaw.ai/cli/devices
- https://docs.openclaw.ai/gateway/troubleshooting
- https://docs.openclaw.ai/web/control-ui#device-pairing-first-connection
If devices approve still fails, paste:
openclaw --version- output of
openclaw devices list
and Iโll help narrow it down.
gateway connect failed: GatewayClientRequestError: scope upgrade pending approval (requestId: d9071268-d4da-4c08-9b9d-c75858ade4ee)
โ
Direct scope access failed; using local fallback.
unknown requestId
Yep, that usually means the requestId already rotated and the one you approved is stale.
unknown requestId here = โthat pending request no longer existsโ.
Try this sequence on the gateway host:
openclaw --version
openclaw devices list
openclaw devices approve d9071268-d4da-4c08-9b9d-c75858ade4ee
But only use that ID if devices list still shows it. If not, approve the newest exact ID from the list.
Whatโs happening:
- the client retried pairing
- OpenClaw superseded the old pending entry
- approving the old ID returns
unknown requestId
If it keeps changing, do this:
- trigger the connect once
- immediately run
openclaw devices list - approve the current pending ID right away
If it still fails, paste:
openclaw --version
openclaw devices list --json
Workspace bootstrap files are near configured limits: โ
โ - AGENTS.md: 10,428 chars (87% of max/file 12,000) โ
โ Total bootstrap injected chars: 13,593 (23% of max/total 60,000). โ
โ Total bootstrap raw chars (before truncation): 13,593.
That one is just a warning, not the cause of your pairing issue.
What it means:
AGENTS.mdis at 87% of the per-file bootstrap cap- total injected bootstrap is only 23% of the total cap
- so the only thing close to the limit is
AGENTS.md, not the whole prompt
Default limits from docs:
agents.defaults.bootstrapMaxChars:12000agents.defaults.bootstrapTotalMaxChars:60000
So right now youโre still under budget. It only becomes a real problem once OpenClaw starts truncating the file, which can cause lower sections of AGENTS.md to stop being injected.
My recommendation:
- ignore it for now if nothing is being truncated
- if it keeps growing, trim
AGENTS.mdfirst