t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Unable to paste values from clipboard in terminal window on Windows

Open ajstafford opened this issue 3 months ago • 4 comments

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/web

Steps to reproduce

  1. Open/create session
  2. Expand terminal drawer
  3. Attempt to paste value into terminal from clipboard, either via Ctrl-V or via context window

Expected behavior

Clipboard contents should be paste-able into terminal window

Actual behavior

When Ctrl-V is pressed, literal "^V" shows in terminal. When attempt to access "paste" from context menu, no paste option is shown.

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

Windows 11, browser version 0.0.33-nightly.20260809.1047

Logs or stack traces


Screenshots, recordings, or supporting files

No response

Workaround

No response

ajstafford avatar Aug 09 '26 23:08 ajstafford

I tested this on Windows 11 with both the desktop (0.0.33-nightly.20260810.1054) and browser apps, using native PowerShell and a WSL/bash backend.

Native PowerShell backend

With plain text on the clipboard, all three shortcuts pasted successfully in both the desktop and browser apps:

  • Ctrl+V
  • Ctrl+Shift+V
  • Shift+Insert

With an image—but no text—as the active clipboard content, nothing was pasted. It also did not produce the reported literal ^V, which seems reasonable for a text-only terminal.

WSL/bash backend

The behaviour differs under WSL:

  • Ctrl+V produces a literal ^V.
  • Shift+Insert produces an Insert escape sequence ending in 2~.
  • Ctrl+Shift+V successfully pastes the clipboard text.
Image

This suggests that clipboard access itself is working. T3 explicitly handles Ctrl+Shift+V as its non-macOS paste shortcut, while Ctrl+V and Shift+Insert are passed through to the terminal session. Their resulting behaviour therefore depends on the shell/input bindings. In bash/readline, Ctrl+V is normally used for quoted input rather than clipboard paste.

Context-menu behaviour

I can independently reproduce a context-menu problem on both surfaces:

  • Desktop: A Paste option is displayed, but selecting it does not insert anything into the terminal.
  • Browser: Right-clicking the canvas-rendered terminal produces image-related actions such as “Save image as…” and “Copy image”; there is no Paste action.
Image

Therefore, I think this issue contains two separate concerns:

  1. Ctrl+V under WSL/bash is shell behaviour; Ctrl+Shift+V is the working T3 paste shortcut.
  2. Context-menu Paste is genuinely unavailable or broken in both the browser and desktop apps.

I suggest narrowing this issue to the context-menu Paste problem. Supporting Shift+Insert could be considered separately as a conventional terminal paste shortcut. I would preserve Ctrl+V passthrough because terminal applications use it for control input.

Popidge avatar Aug 10 '26 02:08 Popidge

Just as a followup, the WSL behaviour is mirrored for any remote linux host - tested on a session connected to my dedicated linux box.

Popidge avatar Aug 10 '26 02:08 Popidge

Thanks for documenting the shift-ctrl-v option - will help greatly for now

hardboiledphil avatar Aug 10 '26 10:08 hardboiledphil

closing as completed. #5240 added right-click paste and #5982 added Shift+Insert paste on Windows; both fixes are on main.

t3-code-bot[bot] avatar Aug 20 '26 22:08 t3-code-bot[bot]