Skip to content

Commit 279c3c2

Browse files
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 <noreply@anthropic.com>
1 parent 8a131ec commit 279c3c2

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,15 @@ describe("ClaudeAdapterV2 attachments", () => {
746746
data: "AQIDBA==",
747747
},
748748
} as const;
749+
const expectedAttachmentPath = path.join(
750+
attachmentsDir,
751+
attachmentRelativePath(attachment),
752+
);
749753
assert.deepEqual(offeredMessages[0]?.message.content, [
750-
{ type: "text", text: "Ultrathink:\nWhat's in this image?" },
754+
{
755+
type: "text",
756+
text: `Ultrathink:\nWhat's in this image?\n\n[Attached image "diagram.png" is saved at: ${expectedAttachmentPath}]`,
757+
},
751758
expectedImageBlock,
752759
]);
753760

@@ -771,7 +778,10 @@ describe("ClaudeAdapterV2 attachments", () => {
771778

772779
assert.equal(offeredMessages[1]?.priority, "now");
773780
assert.deepEqual(offeredMessages[1]?.message.content, [
774-
{ type: "text", text: "Ultrathink:\nFocus on the diagram labels." },
781+
{
782+
type: "text",
783+
text: `Ultrathink:\nFocus on the diagram labels.\n\n[Attached image "diagram.png" is saved at: ${expectedAttachmentPath}]`,
784+
},
775785
expectedImageBlock,
776786
]);
777787
}).pipe(Effect.provide(Layer.merge(idAllocatorLayer, NodeServices.layer))),

0 commit comments

Comments
 (0)