From 4609ed70c1cb372319a652f2e6559d7a454e44ae Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 19 Jan 2026 08:54:13 +0000 Subject: [PATCH] fix: align exec approval gateway timeout --- src/agents/bash-tools.exec.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/agents/bash-tools.exec.ts b/src/agents/bash-tools.exec.ts index cfaa50982..17611e9ec 100644 --- a/src/agents/bash-tools.exec.ts +++ b/src/agents/bash-tools.exec.ts @@ -478,7 +478,10 @@ export function createExecTool( let approvedByAsk = false; if (requiresAsk) { - const decisionResult = (await callGatewayTool("exec.approval.request", {}, { + const decisionResult = (await callGatewayTool( + "exec.approval.request", + { timeoutMs: 130_000 }, + { command: params.command, cwd: workdir, host: "node", @@ -488,7 +491,8 @@ export function createExecTool( resolvedPath: resolution?.resolvedPath ?? null, sessionKey: defaults?.sessionKey ?? null, timeoutMs: 120_000, - })) as { decision?: string } | null; + }, + )) as { decision?: string } | null; const decision = decisionResult && typeof decisionResult === "object" ? decisionResult.decision ?? null @@ -603,7 +607,10 @@ export function createExecTool( let approvedByAsk = false; if (requiresAsk) { - const decisionResult = (await callGatewayTool("exec.approval.request", {}, { + const decisionResult = (await callGatewayTool( + "exec.approval.request", + { timeoutMs: 130_000 }, + { command: params.command, cwd: workdir, host: "gateway", @@ -613,7 +620,8 @@ export function createExecTool( resolvedPath: resolution?.resolvedPath ?? null, sessionKey: defaults?.sessionKey ?? null, timeoutMs: 120_000, - })) as { decision?: string } | null; + }, + )) as { decision?: string } | null; const decision = decisionResult && typeof decisionResult === "object" ? decisionResult.decision ?? null