Skip to content

Commit 446089e

Browse files
paralinclaude
andcommitted
fixup! feat: write truncated tool outputs to files (anomalyco#7239)
fixup! feat: write truncated tool outputs to files (anomalyco#7239) Add truncated: false to image and PDF returns to fix type inference. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 187834e commit 446089e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/opencode/src/tool/read.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const ReadTool = Tool.define("read", {
8282
output: msg,
8383
metadata: {
8484
preview: `Image: ${path.basename(filepath)} (${sizeKB} KB)`,
85+
truncated: false,
8586
},
8687
attachments: [
8788
{
@@ -109,6 +110,7 @@ export const ReadTool = Tool.define("read", {
109110
output: msg,
110111
metadata: {
111112
preview: `PDF: ${path.basename(filepath)} (${sizeKB} KB)`,
113+
truncated: false,
112114
},
113115
attachments: [
114116
{

0 commit comments

Comments
 (0)