[Bug]: Cmd+Shift+V fails to paste images in macOS desktop app (swallowed by Edit → Paste as Text accelerator)
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Open T3 Code Desktop (
v0.1.11) on macOS. - Type some text into the chat composer (so pasting an image normally inserts an inline image chip in addition to the top thumbnail).
- Copy an image to the clipboard (e.g., a screenshot or an image copied from QQ / Finder).
- Press
Cmd + Shift + Vin the composer (intended to paste without inserting an inline image chip viaskipImageInlineChip).
Expected behavior
Pressing Cmd + Shift + V should trigger a paste event with skipImageInlineChip: true, attaching the image to the composer thumbnail strip without inserting an inline image reference chip into the prompt text (consistent with the composer paste handler passing { skipImageInlineChip: i }).
Actual behavior
Nothing happens — the image is not pasted at all.
Root cause (from bundled v0.1.11 source)
There are two interacting issues on macOS:
-
Menu accelerator swallows
Cmd + Shift + V(apps/desktopmain.cjs): The macOSEdit → Paste as Textmenu item bindsaccelerator: "CmdOrCtrl+Shift+V"topasteAsTextClick:const pasteAsTextClick = (_item, _window, event) => { if (event.triggeredByAccelerator === true) return; runMenuEffect("paste-as-text", dispatchMenuAction("paste-as-text")); };This early return was added in #11958 to fix #11955 (duplicate text paste). However, on macOS, the native menu intercepts
Cmd + Shift + V(before-input-eventonly callssetIgnoreMenuShortcutsforCmd + W), returns early without callingwebContents.paste(), and Chromium does not trigger an image paste forCmd + Shift + V. Clicking Edit → Paste as Text with the mouse works (triggeredByAcceleratoris false), whereas the keyboard shortcut does nothing for images. -
Clipboard with both an image file and
text/plainskips image attachment underPaste as Text: Even whenPaste as Textdoes fire (bypassAutoAttachment: true), the composer attachment predicate checksbypassAutoAttachment && plainText.length > 0and immediately returnsfalse. On macOS, images copied from apps like QQ or Finder often include a plain-text filename alongside the image file, so they are skipped instead of being attached withskipImageInlineChip: true.
Impact
Minor bug or occasional failure
Version or commit
0.1.11 (commit 59651c1761f6)
Environment
macOS 26.5.1 (Build 25F80, arm64), T3 Code (Beta) Desktop v0.1.11
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Paste normally with Cmd + V and press Backspace to delete the inline image chip from the text box (the image remains in the top thumbnail strip and is still sent), or paste images before typing any text.
This is the same problem as #21006, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.