tweak: drop ids from attachments in tools, assign them in prompt.ts instead (#13890)

This commit is contained in:
Aiden Cline
2026-02-16 14:59:57 -06:00
committed by GitHub
parent 9d3c81a683
commit a580fb47d2
7 changed files with 37 additions and 20 deletions

View File

@@ -46,6 +46,9 @@ describe("tool.webfetch", () => {
expect(result.attachments?.[0].type).toBe("file")
expect(result.attachments?.[0].mime).toBe("image/png")
expect(result.attachments?.[0].url.startsWith("data:image/png;base64,")).toBe(true)
expect(result.attachments?.[0]).not.toHaveProperty("id")
expect(result.attachments?.[0]).not.toHaveProperty("sessionID")
expect(result.attachments?.[0]).not.toHaveProperty("messageID")
},
})
},