[BUG] Paste broken in terminal.app

Status Closed — not planned
Reported on v2.1.193
Maintainer reply ✓ Yes — bcherny
Activity 4 comments · opened Jul 5, 2026 · closed Aug 24, 2026
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Preflight Checklist

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

What's Wrong?

Paste in Claude Code is broken Shows 'h G2' instead of pasted text ; paste works as zsh prompt but not inside claude code. Show a line --------- G2.

What Should Happen?

It should allow me to normally copy and paste like it has up until this point.

Error Messages/Logs

----- G2

Steps to Reproduce

I dont know honestly

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.193

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

4 Comments

bcherny collaborator · 1 month ago

Thanks for the report. I tried to reproduce this on the current release (2.1.233) in macOS Terminal.app: pasting a 2-line snippet with Cmd+V inserted the text into the prompt correctly, and pasting 30 lines showed the usual [Pasted text #1 +30 lines] placeholder. I couldn't get h G2 or a ----- G2 line to appear.

Since the steps aren't known yet, could you share a bit more so we can dig in?

  • Does it still happen on the latest version (claude update, then claude --version)?
  • Does it happen in a brand-new Terminal.app window/tab, or only in one that has been running for a while (e.g. after another program like vim/tmux/ssh ran in it)?
  • What was on the clipboard when it happened (plain text, code, something copied from a browser)? Does a short plain-text paste like hello also break?
  • Any tmux, screen, or SSH between Terminal.app and Claude Code?
  • Output of claude doctor, and your Terminal.app profile's Advanced settings (terminal type, "Paste newlines as CR", etc.).

If you can capture a screenshot or /share link from a session where it happens, that would help a lot.

🤖 Generated with Claude Code

github-actions[bot] · 1 month ago

We weren't able to reproduce this. Could you provide steps to trigger the issue — what you ran, what happened, and what you expected? This issue will be closed automatically if there's no activity within 7 days.

github-actions[bot] · 1 month ago

Closing for now — we still need reproduction steps to investigate. Please open a new issue if this is still relevant.

github-actions[bot] · 15 hours ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.