diff options
| author | Spoon <[email protected]> | 2026-01-19 22:44:58 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-19 15:44:58 -0600 |
| commit | 673e79f457ed75f6077d7c5ad71906a7c8ce415c (patch) | |
| tree | d3b3d122b1d873ca70830f43c1653c9d6cdaac13 | |
| parent | 79ae749ed8d72fc55cbb47435a717c0653511980 (diff) | |
| download | opencode-673e79f457ed75f6077d7c5ad71906a7c8ce415c.tar.gz opencode-673e79f457ed75f6077d7c5ad71906a7c8ce415c.zip | |
tweak(batch): up restrictive max batch tool from `10` to `25` (#9275)
| -rw-r--r-- | packages/opencode/src/tool/batch.ts | 8 | ||||
| -rw-r--r-- | packages/opencode/src/tool/batch.txt | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/opencode/src/tool/batch.ts b/packages/opencode/src/tool/batch.ts index 8bffbd54a..ba34eb48f 100644 --- a/packages/opencode/src/tool/batch.ts +++ b/packages/opencode/src/tool/batch.ts @@ -33,8 +33,8 @@ export const BatchTool = Tool.define("batch", async () => { const { Session } = await import("../session") const { Identifier } = await import("../id/id") - const toolCalls = params.tool_calls.slice(0, 10) - const discardedCalls = params.tool_calls.slice(10) + const toolCalls = params.tool_calls.slice(0, 25) + const discardedCalls = params.tool_calls.slice(25) const { ToolRegistry } = await import("./registry") const availableTools = await ToolRegistry.tools({ modelID: "", providerID: "" }) @@ -139,14 +139,14 @@ export const BatchTool = Tool.define("batch", async () => { state: { status: "error", input: call.parameters, - error: "Maximum of 10 tools allowed in batch", + error: "Maximum of 25 tools allowed in batch", time: { start: now, end: now }, }, }) results.push({ success: false as const, tool: call.tool, - error: new Error("Maximum of 10 tools allowed in batch"), + error: new Error("Maximum of 25 tools allowed in batch"), }) } diff --git a/packages/opencode/src/tool/batch.txt b/packages/opencode/src/tool/batch.txt index b1b6a6010..565eb4dd4 100644 --- a/packages/opencode/src/tool/batch.txt +++ b/packages/opencode/src/tool/batch.txt @@ -6,7 +6,7 @@ Payload Format (JSON array): [{"tool": "read", "parameters": {"filePath": "src/index.ts", "limit": 350}},{"tool": "grep", "parameters": {"pattern": "Session\\.updatePart", "include": "src/**/*.ts"}},{"tool": "bash", "parameters": {"command": "git status", "description": "Shows working tree status"}}] Notes: -- 1–10 tool calls per batch +- 1–20 tool calls per batch - All calls start in parallel; ordering NOT guaranteed - Partial failures do not stop other tool calls - Do NOT use the batch tool within another batch tool. |
