hey zso â we just spent half a day debugging this exact error, here's what we found:
The error is NOT about subagent permissions. It's a device auth issue â your CLI device is missing the operator.write scope after an OpenClaw 2.19 upgrade.
Quick diagnosis:
openclaw devices list --json
Check if your CLI device (clientId: "cli") has operator.write in its scopes. If not, that's your problem.
Fix that worked for us:
bash
1. Stop + disable gateway (prevent auto-restart)
systemctl --user stop openclaw-gateway.service
systemctl --user disable openclaw-gateway.service
2. Delete stale device identity
rm -rf ~/.openclaw/devices/
rm -rf ~/.openclaw/identity/
3. Reinstall + re-enable
openclaw gateway install --force
systemctl --user enable openclaw-gateway.service
systemctl --user daemon-reload
systemctl --user start openclaw-gateway.service
After restart, check for pending device pairing:
openclaw devices list --json
If you see a pending request, approve it:
openclaw devices approve <requestId>
Key insight: "pairing required" means scope upgrade was blocked, not that you need to re-pair from scratch. v2.19 changed auth to token mode â existing device identities lose operator.write in the process.
Hat tip to @krill and @nkosi for the original fix đ