fix: ensure images are properly returned as tool results

This commit is contained in:
Aiden Cline
2026-01-21 23:54:39 -06:00
parent fc0210c2fd
commit c2844697f3
3 changed files with 64 additions and 47 deletions

View File

@@ -722,12 +722,6 @@ export namespace SessionPrompt {
)
return result
},
toModelOutput(result) {
return {
type: "text",
value: result.output,
}
},
})
}
@@ -819,12 +813,6 @@ export namespace SessionPrompt {
content: result.content, // directly return content to preserve ordering when outputting to model
}
}
item.toModelOutput = (result) => {
return {
type: "text",
value: result.output,
}
}
tools[key] = item
}