Terminal freezes when pasting long text in Cursor's integrated terminal
Resolved 💬 3 comments Opened Mar 18, 2026 by rairaito1124-dotcom Closed Mar 21, 2026
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?
When pasting long text into Claude Code's interactive session in Cursor's integrated terminal (xterm.js based), the terminal freezes completely. Ctrl+C stops responding and no keyboard input is accepted.
What Should Happen?
Text is pasted and accepted normally.
Error Messages/Logs
Steps to Reproduce
- Start an interactive Claude Code session
- Copy a long text (500+ characters)
- Paste with Cmd+V into the Claude Code prompt
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
latest
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Cursor
Additional Information
Possible cause
Large paste operations flood the PTY buffer all at once, overwhelming Claude Code's input handler.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗