Running OpenClaw 2026.4.18 on WSL2 (Windows 11). When my agent tries to spawn a subagent via sessions_spawn, it fails with:
gateway closed (1008): pairing required
Gateway target: ws://127.0.0.1:18790
Source: local loopback
Things I've tried:
⢠openclaw gateway restart (multiple times)
⢠openclaw gateway install --force
⢠openclaw doctor --fix
⢠Deleted ~/.openclaw/identity/device-auth.json and let it regenerate
⢠Passed --token explicitly to CLI commands
⢠Updated to 2026.4.18
The device-auth.json always re-pairs with only operator.approvals scope ā never gets operator.write or broader scopes. I think this is why subagent spawns are rejected.
Auth config in openclaw.json:
"gateway": {
"auth": {
"mode": "token",
"token": "..."
},
"bind": "loopback"
}
The main Telegram session works fine ā I can chat with the agent normally. It's only subagent spawning and cron isolated sessions that fail. Cron main-session jobs also fail with the same error when added via CLI or the cron tool inside the agent.
Any idea what's causing the limited device scope and how to get full operator access for local CLI/subagent use?