Skip to content

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

test(attachments): add gzip probe logging to validateAndReadFile

Steven Enamakel44e232005ade
diff --git a/app/src/lib/attachments.test.ts b/app/src/lib/attachments.test.ts
index 0a99123660..a473be3e1f 100644
--- a/app/src/lib/attachments.test.ts
+++ b/app/src/lib/attachments.test.ts
@@ -107,6 +107,7 @@ describe('validateAndReadFile', () => {
);
const encoded = result.attachment.dataUri.split(',')[1];
const bytes = Uint8Array.from(atob(encoded), char => char.charCodeAt(0));
+ console.error('gzip probe', encoded.slice(0, 24), Array.from(bytes.slice(0, 8)));
const stream = new ReadableStream({
start(controller) {
controller.enqueue(bytes);