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

@@ -69,6 +69,7 @@ export class Attachment extends PureComponent {
handleMentionInChat = async (e) => {
e?.stopPropagation?.();
const { attachment, onMentionInChat } = this.props;
console.log('[Attachment] Mention in chat clicked', attachment);
if (!attachment) return;
if (onMentionInChat) {
@@ -105,11 +106,15 @@ export class Attachment extends PureComponent {
}
const trimmed = (textContent || '').trim();
if (!trimmed) return;
if (!trimmed) {
console.warn('[Attachment] No text found to mention in chat', attachment);
return;
}
chatAutomat.actions.insertExtractionSnippet({
text: trimmed,
label: 'parsed invoice',
instruction: "use 'Process Incoming Product and Invoices' SKILL to fill drafts/delivery vfs file",
});
};