diff --git a/desktop/src/features/messages/ui/MessageComposer.tsx b/desktop/src/features/messages/ui/MessageComposer.tsx index d0ffa93160..90578ec8dd 100644 --- a/desktop/src/features/messages/ui/MessageComposer.tsx +++ b/desktop/src/features/messages/ui/MessageComposer.tsx @@ -707,7 +707,6 @@ function MessageComposerImpl({ } return; } - // Escape in edit mode if ( event.key === "Escape" && @@ -733,14 +732,11 @@ function MessageComposerImpl({ onCancelEdit, ], ); - // ── Media paste + ⌘K link shortcut via Tiptap editorProps ────────── const uploadFileRef = React.useRef(media.uploadFile); uploadFileRef.current = media.uploadFile; - React.useEffect(() => { if (!richText.editor) return; - richText.editor.setOptions({ editorProps: { ...richText.editor.options.editorProps, @@ -758,7 +754,6 @@ function MessageComposerImpl({ } return true; } - // --- Buzz code-block paste --- // The code block copy button writes a small Buzz marker alongside // plain text. Use it to paste back as a literal code block so Markdown @@ -785,7 +780,6 @@ function MessageComposerImpl({ scrollComposerToBottom(); return true; } - // Restore Buzz snapshots before normal styled-HTML normalization. if (handleAgentSnapshotPaste(event, media.setPendingImeta)) return true; @@ -797,18 +791,15 @@ function MessageComposerImpl({ _view.pasteHTML(cleanHtml); return true; } - const plainText = event.clipboardData?.getData("text/plain") ?? ""; if (plainText.includes("\n")) { scrollComposerToBottom(); } - return false; }, }, }); }, [media.setPendingImeta, richText.editor, scrollComposerToBottom]); - // ── Send button state ─────────────────────────────────────────────── const sendDisabled = React.useMemo( () => @@ -828,7 +819,6 @@ function MessageComposerImpl({ media.queuedAttachments.length, ], ); - const handleCaptureSelection = React.useCallback(() => {}, []); const handlePaperclipClick = React.useCallback(() => { diff --git a/desktop/src/features/messages/ui/useMentionSendFlow.ts b/desktop/src/features/messages/ui/useMentionSendFlow.ts index a54df4ba3d..e8581900a6 100644 --- a/desktop/src/features/messages/ui/useMentionSendFlow.ts +++ b/desktop/src/features/messages/ui/useMentionSendFlow.ts @@ -185,7 +185,6 @@ export function useMentionSendFlow({ pubkeys: [] as string[], }; } - const managedAgentsByPubkey = await getManagedAgentsByPubkey(); for (const agent of preparedManagedAgents) { managedAgentsByPubkey.set(normalizePubkey(agent.pubkey), agent); @@ -196,13 +195,11 @@ export function useMentionSendFlow({ ]); const errors: string[] = []; const pubkeys: string[] = []; - for (const pubkey of uniqueNormalizedPubkeys(mentionPubkeys)) { const agent = managedAgentsByPubkey.get(pubkey); if (!agent) { continue; } - try { if (participantPubkeys.has(pubkey)) { if (isProviderBackedAgent(agent)) { @@ -229,7 +226,6 @@ export function useMentionSendFlow({ ); } } - return { errors, pubkeys: uniqueNormalizedPubkeys(pubkeys),