From e7d5aaebdf5da7c3024680aa9e064f3027aff137 Mon Sep 17 00:00:00 2001 From: iven Date: Mon, 6 Apr 2026 15:10:17 +0800 Subject: [PATCH] fix: pass subagent_enabled in gateway-client.ts synchronous path The connectZclawStream call in the synchronous code path (common case when agentId is already known) was missing the subagent_enabled field, causing Gateway-connected clients to never send the flag to the server. --- desktop/src/lib/gateway-client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/src/lib/gateway-client.ts b/desktop/src/lib/gateway-client.ts index d811d16..b146421 100644 --- a/desktop/src/lib/gateway-client.ts +++ b/desktop/src/lib/gateway-client.ts @@ -516,6 +516,7 @@ export class GatewayClient { thinking_enabled: opts?.thinking_enabled, reasoning_effort: opts?.reasoning_effort, plan_mode: opts?.plan_mode, + subagent_enabled: opts?.subagent_enabled, }); return { runId };