tao-shen Claude Opus 4.6 (1M context) commited on
Commit
23598bb
·
1 Parent(s): 96fa819

revert: restore token auth + dangerouslyDisableDeviceAuth=true

Browse files

Password auth also fails — auto-pairing only grants operator.read.
This is OpenClaw upstream bug (openclaw/openclaw#22226, #17187).
The A2A bridge correctly implements the full WS protocol but cannot
get operator.write scope through any auth method.

Reverting to the working config. A2A dispatch falls back to direct
LLM API calls via conversation-loop.py's call_llm_fallback().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. scripts/sync_hf.py +2 -2
  2. scripts/token-redirect.cjs +1 -1
scripts/sync_hf.py CHANGED
@@ -430,11 +430,11 @@ class OpenClawFullSync:
430
  "mode": "local",
431
  "bind": "lan",
432
  "port": 7860,
433
- "auth": {"password": GATEWAY_TOKEN},
434
  "trustedProxies": ["0.0.0.0/0"],
435
  "controlUi": {
436
  "allowInsecureAuth": True,
437
- "dangerouslyDisableDeviceAuth": False,
438
  "allowedOrigins": allowed_origins
439
  }
440
  }
 
430
  "mode": "local",
431
  "bind": "lan",
432
  "port": 7860,
433
+ "auth": {"token": GATEWAY_TOKEN},
434
  "trustedProxies": ["0.0.0.0/0"],
435
  "controlUi": {
436
  "allowInsecureAuth": True,
437
+ "dangerouslyDisableDeviceAuth": True,
438
  "allowedOrigins": allowed_origins
439
  }
440
  }
scripts/token-redirect.cjs CHANGED
@@ -337,7 +337,7 @@ function handleA2ABridge(req, res) {
337
  wsSend(wsSocket, JSON.stringify({
338
  type: 'req', id: 'connect-' + Date.now(), method: 'connect',
339
  params: {
340
- auth: { password: GATEWAY_TOKEN },
341
  client: { id: 'gateway-client', platform: 'node', mode: 'backend', version: '1.0.0' },
342
  minProtocol: 3,
343
  maxProtocol: 3,
 
337
  wsSend(wsSocket, JSON.stringify({
338
  type: 'req', id: 'connect-' + Date.now(), method: 'connect',
339
  params: {
340
+ auth: { token: GATEWAY_TOKEN },
341
  client: { id: 'gateway-client', platform: 'node', mode: 'backend', version: '1.0.0' },
342
  minProtocol: 3,
343
  maxProtocol: 3,