chore: generate
This commit is contained in:
parent
005bf088c9
commit
a277557a5f
2 changed files with 3 additions and 2 deletions
|
|
@ -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 () => {
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue