enh/refac: temp chat file upload behaviour

client-side content extraction
This commit is contained in:
Timothy Jaeryang Baek
2025-07-09 22:59:37 +04:00
parent 8fb54b133e
commit 8d84b4c2a4
6 changed files with 350 additions and 38 deletions
+1 -1
View File
@@ -1597,7 +1597,7 @@
let files = JSON.parse(JSON.stringify(chatFiles));
files.push(
...(userMessage?.files ?? []).filter((item) =>
['doc', 'file', 'note', 'collection'].includes(item.type)
['doc', 'text', 'file', 'note', 'collection'].includes(item.type)
)
);
// Remove duplicates