[BUG] Bracketed paste mode not disabled on exit
Resolved 💬 6 comments Opened Jan 8, 2026 by michael-huth Closed Feb 23, 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?
After exiting Claude Code, pasting in terminal doesn't work until running printf '\e[?2004l' or reset
- OS: macOS (Darwin 24.6.0)
What Should Happen?
pasting should work as expected
Error Messages/Logs
Steps to Reproduce
- start claude-code in terminal
- go out of it
- try pasting someting to the terminal
- it looks like 00~<paste text>01~
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.67 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗