fix(cua): retain serializable screenshot reference fields

This commit is contained in:
creatixchu committed 2026-10-13 12:02:14 +08:00
1 parent 89d018e296
commit 4377e0a998
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ interface CuaExecution extends ToolExecution {
}
type ScreenshotValue = z.infer<typeof ScreenshotResult> & { attachment: ImageAttachmentRef } & JsonValue
type ScreenshotValue = z.infer<typeof ScreenshotResult> & { attachment: { [K in keyof ImageAttachmentRef]: ImageAttachmentRef[K] } }
/** Native values stay available to programs; only metadata and the stored image enter model content. */
function renderResult(args: unknown, value: JsonValue): ContentBlock[] {