Description
When pasting a large amount of text into the Claude Code input in Neovim, the Claude Code window crashes and exits immediately. Upon reopening with :ClaudeCode, the terminal buffer has a persistent red background that cannot be cleared.
Steps to Reproduce
- Open Neovim
- Run
:ClaudeCode to open Claude Code
- Paste a very large text into the input field
- Claude Code crashes and exits
- Run
:ClaudeCode again
- The Claude Code window now has a red background
Expected Behavior
The Claude Code window should display with normal colors after reopening, or gracefully handle large input without crashing.
Actual Behavior
- The window crashes when large text is pasted
- After reopening, the output area has a bright red background
- Other Neovim windows in the same session display correctly
- Workarounds like
:bd!, reset, Ctrl-l, and terminal reset escape sequences do not fix the issue
Environment
- OS: macOS (Darwin 24.6.0)
- Neovim: v0.11.5
- Claude Code version: 2.0.72
Screenshots

Description
When pasting a large amount of text into the Claude Code input in Neovim, the Claude Code window crashes and exits immediately. Upon reopening with
:ClaudeCode, the terminal buffer has a persistent red background that cannot be cleared.Steps to Reproduce
:ClaudeCodeto open Claude Code:ClaudeCodeagainExpected Behavior
The Claude Code window should display with normal colors after reopening, or gracefully handle large input without crashing.
Actual Behavior
:bd!,reset,Ctrl-l, and terminal reset escape sequences do not fix the issueEnvironment
Screenshots