feat(composer): fold large pastes into text attachments (#11442)
This commit is contained in:
1 parent
36caf200c2
commit
68c2277f50
77 files changed
+3278
-465
No files matched your search
@@ -318,4 +318,18 @@ describe("toOpenCodeFileParts", () => {
|
||||
["application/pdf", "text/markdown", "image/png"],
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps folded clipboard text on the lazy path fallback", () => {
|
||||
const parts = toOpenCodeFileParts({
|
||||
attachments: [
|
||||
{
|
||||
...attachment("text/plain"),
|
||||
source: { _tag: "pasted-text" as const },
|
||||
},
|
||||
],
|
||||
resolveAttachmentPath: () => "/tmp/pasted-text.txt",
|
||||
});
|
||||
|
||||
NodeAssert.deepEqual(parts, []);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user