From 5730703d1124134526a17f930169ddf18d8bda10 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Wed, 7 Jan 2026 17:19:20 -0600 Subject: [PATCH] add comment --- packages/opencode/src/tool/bash.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts index 4a4f1cf557..e06a3f157c 100644 --- a/packages/opencode/src/tool/bash.ts +++ b/packages/opencode/src/tool/bash.ts @@ -178,6 +178,7 @@ export const BashTool = Tool.define("bash", async () => { output += chunk.toString() ctx.metadata({ metadata: { + // truncate the metadata to avoid GIANT blobs of data (has nothing to do w/ what agent can access) output: output.length > MAX_METADATA_LENGTH ? output.slice(0, MAX_METADATA_LENGTH) + "\n\n..." : output, description: params.description, },