fix: pass subagent_enabled in gateway-client.ts synchronous path
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

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.
This commit is contained in:
iven
2026-04-06 15:10:17 +08:00
parent 14c3c963c2
commit e7d5aaebdf

View File

@@ -516,6 +516,7 @@ export class GatewayClient {
thinking_enabled: opts?.thinking_enabled, thinking_enabled: opts?.thinking_enabled,
reasoning_effort: opts?.reasoning_effort, reasoning_effort: opts?.reasoning_effort,
plan_mode: opts?.plan_mode, plan_mode: opts?.plan_mode,
subagent_enabled: opts?.subagent_enabled,
}); });
return { runId }; return { runId };