Skip to content

The open-source app everyone uses to manage agents at work

fix(openclaw-gateway): bump adapter PROTOCOL_VERSION to 4 to match gateway (#5984)

sparkerosec2d87d35316
diff --git a/packages/adapters/openclaw-gateway/src/server/execute.ts b/packages/adapters/openclaw-gateway/src/server/execute.ts
index 570f420850..91bef0081e 100644
--- a/packages/adapters/openclaw-gateway/src/server/execute.ts
+++ b/packages/adapters/openclaw-gateway/src/server/execute.ts
@@ -86,7 +86,7 @@ type GatewayClientRequestOptions = {
expectFinal?: boolean;
};
-const PROTOCOL_VERSION = 3;
+const PROTOCOL_VERSION = 4;
const DEFAULT_SCOPES = ["operator.admin"];
const DEFAULT_CLIENT_ID = "gateway-client";
const DEFAULT_CLIENT_MODE = "backend";
diff --git a/packages/adapters/openclaw-gateway/src/server/test.ts b/packages/adapters/openclaw-gateway/src/server/test.ts
index af4c74d197..fd8f9f6100 100644
--- a/packages/adapters/openclaw-gateway/src/server/test.ts
+++ b/packages/adapters/openclaw-gateway/src/server/test.ts
@@ -145,8 +145,8 @@ async function probeGateway(input: {
id: connectId,
method: "connect",
params: {
- minProtocol: 3,
- maxProtocol: 3,
+ minProtocol: 4,
+ maxProtocol: 4,
client: {
id: "gateway-client",
version: "paperclip-probe",