-
-
Notifications
You must be signed in to change notification settings - Fork 32
Gateway client fails against OpenClaw 2026.9.5: Control UI build check on connect, and sessions.create before the new agent registers #91
Copy link
Copy link
Open
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper: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-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.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
Activity
Metadata
Metadata
Assignees
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper: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-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.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
clawbench runcannot complete a task against an OpenClaw 2026.9.5 gateway (ec9c1a1). There are two separate incompatibilities inclawbench/client.py, found at ClawBenche3f8d25(currentmain).Setup
e3f8d25with--build-arg OPENCLAW_IMAGE=pointing at theghcr.io/openclaw/openclaw:2026.9.5index (linux/arm64).OPENCLAW_GATEWAY_TOKENset; judge off.)1. The handshake is rejected as a stale Control UI
Gateway log:
The client connects as
{"id": "openclaw-control-ui", "mode": "ui"}with nobuildId. The 2026.9.5 gateway's connect handler (resolveControlUiBuildMismatch) compares a Control UI client'sbuildIdwith its own build and closes the connection when they differ. A missing id counts aslegacy. The protocol range (3–4) is fine: the gateway speaks v4.Identifying as the CLI (
{"id": "cli", "mode": "cli"}) gets past the handshake. That client then needs its device identity paired: its first connect answersNOT_PAIRED, andopenclaw devices approve <requestId>resolves it. SettingCLAWBENCH_DISABLE_GATEWAY_DEVICE_IDENTITY=1avoids the pairing, but the connection then lacksoperator.admin, andagents.createfails withFORBIDDEN - missing scope: operator.admin.2.
sessions.createruns before the new agent existsGateway log (timestamps):
On 2026.9.5,
agents.createreturns before the agent is registered. The agent becomes known when the config hot reload applies, about 200 ms later.Suggested fixes
buildIdthe gateway accepts. Document the device-pairing step for token-authenticated harness clients, or have the worker approve its own pairing request, since it owns the gateway.agents.create, wait until the agent is registered beforesessions.create: pollagents.list, or retryUnknown agent idbriefly.Workaround used
This local patch to
clawbench/client.py, plus pairing the harness device withopenclaw devices approve, made the smoke pass on 2026.9.5. The run scored 0.880 ont1-fs-quick-notewithollama/gemma4:26b(completion 1.00, trajectory 0.60, behavior 1.00).