havre tests: a sent photo's turn shifts the indexes after it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQqGFv54JJTw7p3rgGjP7C
This commit is contained in:
teahubxyzandClaude Opus 5.5 committed 2026-10-20 18:18:54 +00:00
1 parent db39c10681
commit 44a91eb69b
1 file changed
+2 -2
+2 -2
View File
@@ -287,8 +287,8 @@ test("the conversation as the model reads it: a photo it sent is mentioned to it
assert.deepEqual(api.map((m) => m.role), ["user", "assistant", "user", "user", "assistant", "user"]);
assert.equal(api[1].content, "*sends a photo: On the deck*\n\n*sends a short video: Waving*");
assert.equal(api[2].content, "lovely");
assert.equal(api[2].content, "[a photo: A gull on a post.] what's this?");
assert.equal(api[4].content, "hello there");
assert.equal(api[3].content, "[a photo: A gull on a post.] what's this?");
assert.equal(api[5].content, "hello there");
assert.ok(!api.some((m) => /\[photo\]/.test(m.content)), "the model never sees a photo placeholder in its own voice");
const seen = A.withPicture([{ role: "system", content: "s" }, { role: "user", content: "[a photo] look" }], "data:image/jpeg;base64,AAAA");
assert.deepEqual(seen[1].content[1], { type: "image_url", image_url: { url: "data:image/jpeg;base64,AAAA" } });