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 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 committed 2026-08-14 11:23:51 +02:00
1 parent 8b747dd4f9
commit c6e3aeb591
1 file changed
+12 -2
@@ -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))),