From c6e3aeb591a3367ded6b97da32a30a169a4ddc3a Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 10 Aug 2026 19:05:28 +0200 Subject: [PATCH] test(server): expect attachment saved-at lines in ClaudeAdapterV2 turn text Follow-up to the #5757 port: start and steer turns now append the '[Attached ... is saved at: path]' line, so the adapter fixtures assert it. Co-Authored-By: Claude Fable 5 --- .../Adapters/ClaudeAdapterV2.test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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))),