This commit is contained in:
seb
2026-10-16 14:32:10 +02:00
parent a592cc30f6
commit 5c57097ad0
4 changed files with 136 additions and 5 deletions

View File

@@ -688,6 +688,7 @@ class LieferungNeuPage extends PureComponent {
}
async handleMentionInChat(attachment) {
console.log('[neu.jsx] handleMentionInChat called', attachment);
if (!attachment) return;
let text = attachment.text;
if (!text && (!attachment.file || attachment.file.size === 0)) {
@@ -708,11 +709,16 @@ class LieferungNeuPage extends PureComponent {
}
const trimmed = (text || '').trim();
if (!trimmed) return;
if (!trimmed) {
console.warn('[neu.jsx] handleMentionInChat: text is empty for attachment', attachment);
return;
}
console.log('[neu.jsx] Inserting extraction snippet to chat, length:', trimmed.length);
chatAutomat.actions.insertExtractionSnippet({
text: trimmed,
label: 'parsed invoice',
instruction: "use 'Process Incoming Product and Invoices' SKILL to fill drafts/delivery vfs file",
});
}