Handle legacy 'context' attachments (#16687)

This commit is contained in:
Aleksander Grygier
2025-10-20 19:49:02 +02:00
committed by GitHub
parent b617cfd289
commit c9c1972e2c
5 changed files with 39 additions and 2 deletions
@@ -94,6 +94,17 @@
attachmentIndex: index,
textContent: attachment.content
});
} else if (attachment.type === 'context') {
// Legacy format from old webui - treat as text file
items.push({
id: `attachment-${index}`,
name: attachment.name,
type: 'text',
isImage: false,
attachment,
attachmentIndex: index,
textContent: attachment.content
});
} else if (attachment.type === 'audioFile') {
items.push({
id: `attachment-${index}`,