Aiden Cline 4 месяцев назад
Родитель
Сommit
bfbcf978fa
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      packages/opencode/src/tool/bash.ts
  2. 1 1
      packages/opencode/src/tool/bash.txt

+ 1 - 1
packages/opencode/src/tool/bash.ts

@@ -21,7 +21,7 @@ const MAX_OUTPUT_LENGTH = (() => {
   const parsed = Number(Flag.OPENCODE_EXPERIMENTAL_BASH_MAX_OUTPUT_LENGTH)
   return Number.isInteger(parsed) && parsed > 0 ? parsed : DEFAULT_MAX_OUTPUT_LENGTH
 })()
-const DEFAULT_TIMEOUT = 1 * 60 * 1000
+const DEFAULT_TIMEOUT = 2 * 60 * 1000
 const SIGKILL_TIMEOUT_MS = 200
 
 export const log = Log.create({ service: "bash-tool" })

+ 1 - 1
packages/opencode/src/tool/bash.txt

@@ -18,7 +18,7 @@ Before executing the command, please follow these steps:
 
 Usage notes:
   - The command argument is required.
-  - You can specify an optional timeout in milliseconds (up to 600000ms / 10 minutes). If not specified, commands will timeout after 120000ms (2 minutes).
+  - You can specify an optional timeout in milliseconds. If not specified, commands will timeout after 120000ms (2 minutes). Use the `timeout` parameter to control execution time.
   - The `workdir` parameter specifies the working directory for the command. Defaults to the current working directory. Prefer setting `workdir` over using `cd` in your commands.
   - It is very helpful if you write a clear, concise description of what this command does in 5-10 words.
   - If the output exceeds 30000 characters, output will be truncated before being returned to you.