diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts index e73fba0298..a5719bfb6b 100644 --- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts @@ -746,8 +746,15 @@ describe("ClaudeAdapterV2 attachments", () => { data: "AQIDBA==", }, } as const; + const expectedAttachmentPath = path.join( + attachmentsDir, + attachmentRelativePath(attachment), + ); assert.deepEqual(offeredMessages[0]?.message.content, [ - { type: "text", text: "Ultrathink:\nWhat's in this image?" }, + { + type: "text", + text: `Ultrathink:\nWhat's in this image?\n\n[Attached image "diagram.png" is saved at: ${expectedAttachmentPath}]`, + }, expectedImageBlock, ]); @@ -771,7 +778,10 @@ describe("ClaudeAdapterV2 attachments", () => { assert.equal(offeredMessages[1]?.priority, "now"); assert.deepEqual(offeredMessages[1]?.message.content, [ - { type: "text", text: "Ultrathink:\nFocus on the diagram labels." }, + { + type: "text", + text: `Ultrathink:\nFocus on the diagram labels.\n\n[Attached image "diagram.png" is saved at: ${expectedAttachmentPath}]`, + }, expectedImageBlock, ]); }).pipe(Effect.provide(Layer.merge(idAllocatorLayer, NodeServices.layer))),