diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts index abfc5947cd..8743373327 100644 --- a/packages/opencode/src/tool/bash.ts +++ b/packages/opencode/src/tool/bash.ts @@ -92,7 +92,8 @@ export const BashTool = Tool.define("bash", async () => { timeout: z.number().describe("Optional timeout in milliseconds").optional(), workdir: z .string() - .describe(`The working directory to execute the command in, defaults to ${Instance.directory}`), + .describe(`The working directory to execute the command in, defaults to ${Instance.directory}`) + .optional(), description: z .string() .describe(