fix(core): make V2 reads media-aware and binary-safe (#31038)

This commit is contained in:
Kit Langton 2026-06-05 19:48:34 -04:00 committed by GitHub
commit 83dca45dd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 1709 additions and 120 deletions

View file

@ -109,7 +109,7 @@ Recent work
])
})
test("expands assistant tool calls and settled outcomes into canonical tool messages", () => {
test("replays durable tool media into canonical tool messages without structured base64", () => {
const messages = toLLMMessages(
[
new SessionMessage.Assistant({
@ -140,7 +140,7 @@ Recent work
status: "running",
input: { path: "README.md" },
content: [],
structured: {},
structured: { type: "media", mime: "image/png" },
}),
time: { created },
}),