feat(composer): fold large pastes into text attachments (#11442)

This commit is contained in:
Chris Deeming authored and GitHub committed 2026-09-12 17:28:28 -07:00
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;
}