fix(exec): skip default timeout for background sessions
This commit is contained in:
@@ -442,8 +442,12 @@ export function createExecTool(
|
||||
execCommandOverride = gatewayResult.execCommandOverride;
|
||||
}
|
||||
|
||||
const effectiveTimeout =
|
||||
typeof params.timeout === "number" ? params.timeout : defaultTimeoutSec;
|
||||
const explicitTimeoutSec = typeof params.timeout === "number" ? params.timeout : null;
|
||||
const backgroundTimeoutBypass =
|
||||
allowBackground && explicitTimeoutSec === null && (backgroundRequested || yieldRequested);
|
||||
const effectiveTimeout = backgroundTimeoutBypass
|
||||
? null
|
||||
: (explicitTimeoutSec ?? defaultTimeoutSec);
|
||||
const getWarningText = () => (warnings.length ? `${warnings.join("\n")}\n\n` : "");
|
||||
const usePty = params.pty === true && !sandbox;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user