Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(debug): read typed image fields from attachment part

Steven Enamakela4e0a4f84299
diff --git a/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs b/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs
index 24f9a9f0d5..b1f5f16b50 100644
--- a/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs
+++ b/scripts/debug/web-scripts/typed-image-attachment-roundtrip.mjs
@@ -62,11 +62,11 @@ export default async function typedImageAttachmentRoundtrip({ page, mock, log, l
const append = rpcCalls.find((call) => call.method === "openhuman.threads_message_append");
if (!append) throw new Error("composer did not persist the user message through the core");
const part = append.params?.attachments?.[0];
- const dataUri = part?.image?.media?.url;
+ const dataUri = part?.media?.url;
if (
part?.kind !== "image" ||
- part?.image?.media?.contentType !== "image/png" ||
- part?.image?.media?.fileName !== FILE_NAME ||
+ part?.media?.contentType !== "image/png" ||
+ part?.media?.fileName !== FILE_NAME ||
!dataUri?.startsWith("data:image/png;name=")
) {
throw new Error(`core append lacked the typed PNG payload: ${JSON.stringify(part)}`);