chore: generate

This commit is contained in:
opencode-agent[bot] 2026-07-30 09:05:12 +00:00
commit a277557a5f
2 changed files with 3 additions and 2 deletions

View file

@ -86,7 +86,6 @@ describe("prompt attachment session ownership", () => {
dispose() dispose()
}) })
}) })
}) })
test("rejects a duplicate native clipboard attachment in the V2 prompt store", async () => { test("rejects a duplicate native clipboard attachment in the V2 prompt store", async () => {

View file

@ -113,7 +113,9 @@ export function createPromptInputV2Attachments(
(part) => (part) =>
part.type === "image" && part.type === "image" &&
part.dataUrl === url && part.dataUrl === url &&
(sourcePath ? part.sourcePath === sourcePath : !part.sourcePath && (clipboard || part.filename === file.name)), (sourcePath
? part.sourcePath === sourcePath
: !part.sourcePath && (clipboard || part.filename === file.name)),
) )
if (duplicate) { if (duplicate) {
input.duplicate() input.duplicate()