claude-code - 💡(How to fix) Fix [BUG] Paste functionality completely broken in Windows Terminal + SSH environment [4 comments, 5 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47863Fetched 2026-04-15 06:40:11
View on GitHub
Comments
4
Participants
5
Timeline
11
Reactions
0
Timeline (top)
commented ×4labeled ×4cross-referenced ×1marked_as_duplicate ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When Claude Code is running in a remote Ubuntu server accessed via SSH from Windows Terminal, all paste methods stop working. Right-click paste, Ctrl+Shift+V, Shift+Insert, and the Command Palette paste command are all non-functional. Claude Code's TUI appears to capture all input events and prevents clipboard content from being pasted by any method.

What Should Happen?

At least one paste method should work while Claude Code is active, even in a Windows Terminal + SSH environment.

Error Messages/Logs

Steps to Reproduce

Environment

  • Claude Code version: v2.1.107
  • Client OS: Windows (Windows Terminal)
  • Server OS: Ubuntu (via SSH)
  • Connection: Windows Terminal → SSH → Ubuntu → claude
  1. Open Windows Terminal on Windows
  2. SSH into a remote Ubuntu server
  3. Launch claude (Claude Code)
  4. Attempt to paste clipboard content using any of the following methods

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.61

Claude Code Version

2.1.107 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

Downgrade to Claude Code version 2.0.61, as it is reported to be the last working version where paste functionality was operational.

Guidance

  • Verify that the issue is indeed a regression by testing the paste functionality in version 2.0.61 to confirm it works as expected.
  • If downgrading is not feasible, consider testing the paste functionality in a local environment (without SSH) to isolate if the issue is SSH or environment-specific.
  • Investigate any changes in input event handling between versions 2.0.61 and 2.1.107 of Claude Code that might be causing the paste methods to fail.
  • Check for any existing or planned fixes in newer versions of Claude Code that might address this regression.

Example

No specific code example can be provided without more details on the internal workings of Claude Code, but reviewing the changelog or commit history between versions 2.0.61 and 2.1.107 might offer insights into what changes could be causing the issue.

Notes

The solution provided is based on the information given and might not be applicable if other factors are at play. The lack of error messages or logs limits the ability to provide a more targeted fix.

Recommendation

Apply workaround: Downgrade to version 2.0.61. This is recommended because it is confirmed to be the last version where the paste functionality worked, providing a temporary solution until the issue is fixed in a newer version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Paste functionality completely broken in Windows Terminal + SSH environment [4 comments, 5 participants]