From 9cbe2021ef52c6a4a955820a742ddb33f951d8b7 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Sun, 5 Oct 2025 00:05:24 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20docs(bash):=20timeout=5Fsecs?= =?UTF-8?q?=20description=E2=80=94start=20small=20and=20increase=20on=20re?= =?UTF-8?q?try;=20avoid=20large=20defaults=20for=20responsive=20UX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with `cmux`. --- src/utils/toolDefinitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/toolDefinitions.ts b/src/utils/toolDefinitions.ts index 32b52acf36..f419c6826d 100644 --- a/src/utils/toolDefinitions.ts +++ b/src/utils/toolDefinitions.ts @@ -34,7 +34,7 @@ export const TOOL_DEFINITIONS = { description: "Execute a bash command with a configurable timeout", schema: z.object({ script: z.string().describe("The bash script/command to execute"), - timeout_secs: z.number().positive().describe("Timeout in seconds for command execution"), + timeout_secs: z.number().positive().describe("Timeout (seconds). Start small and increase on retry; avoid large initial values to keep UX responsive"), max_lines: z .number() .int() From 9fbeeb4cc743d238727cd88e8ad7bf9c352139b0 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Sun, 5 Oct 2025 10:44:32 -0500 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20chore:=20apply=20prettier=20?= =?UTF-8?q?formatting=20to=20toolDefinitions.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with `cmux`. --- src/utils/toolDefinitions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/toolDefinitions.ts b/src/utils/toolDefinitions.ts index f419c6826d..78e2db77a8 100644 --- a/src/utils/toolDefinitions.ts +++ b/src/utils/toolDefinitions.ts @@ -34,7 +34,12 @@ export const TOOL_DEFINITIONS = { description: "Execute a bash command with a configurable timeout", schema: z.object({ script: z.string().describe("The bash script/command to execute"), - timeout_secs: z.number().positive().describe("Timeout (seconds). Start small and increase on retry; avoid large initial values to keep UX responsive"), + timeout_secs: z + .number() + .positive() + .describe( + "Timeout (seconds). Start small and increase on retry; avoid large initial values to keep UX responsive" + ), max_lines: z .number() .int()