File-Refs als Preview-Tags statt inline Text, fullText-Kollision fix, hidden-Override fix

This commit is contained in:
Meleki committed 2026-02-27 09:05:30 +01:00
1 parent 491d3b916e
commit 4e3d92ff9f
4 files changed
+99 -10

No files matched your search

+3 -6
View File
@@ -50,12 +50,8 @@ registerPage('chat', {
openFileExplorer({
sessionId,
onSelect(ref) {
const input = document.getElementById('input');
if (!input) return;
const tag = `[Datei: ${ref}]`;
const pos = input.selectionStart || input.value.length;
input.value = input.value.substring(0, pos) + tag + input.value.substring(pos);
input.focus();
addPendingRef(ref);
document.getElementById('input')?.focus();
}
});
});
@@ -117,5 +113,6 @@ registerPage('chat', {
loadedArchiveCount = 0;
isStreaming = false;
clearPendingFiles();
clearPendingRefs();
}
});