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
@@ -462,6 +462,13 @@ export function toOpenCodeFileParts(input: {
|
||||
const parts: Array<FilePartInput> = [];
|
||||
|
||||
for (const attachment of input.attachments ?? []) {
|
||||
if (
|
||||
attachment.type === "file" &&
|
||||
"source" in attachment &&
|
||||
attachment.source?._tag === "pasted-text"
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if (!isOpenCodeNativeFilePart(attachment)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user