Skip to content

Commit cf2eb6f

Browse files
committed
test(mobile): use a valid image context record in the /side test
1 parent 93957e0 commit cf2eb6f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎apps/mobile/src/state/thread-task-permissions.test.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,18 @@ describe("mobile task permissions", () => {
355355
const screenshot = { id: "screenshot" } as DraftComposerImageAttachment;
356356
const screenshotContext = {
357357
version: 1,
358-
records: [{ kind: "image", attachmentId: "screenshot" }],
358+
records: [
359+
{
360+
version: 1,
361+
kind: "image",
362+
contextId: "ctx-screenshot",
363+
label: "screenshot.png",
364+
attachmentId: "screenshot",
365+
name: "screenshot.png",
366+
mimeType: "image/png",
367+
sizeBytes: 10,
368+
},
369+
],
359370
} as unknown as OrchestrationMessageContext;
360371
// The thread gets the composer's mode and model only on its next send.
361372
const selection: ModelSelection = {

0 commit comments

Comments
 (0)