Skip to content

Terminal background color stuck on red after crash #95

@metrue

Description

@metrue

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

  1. Open Neovim
  2. Run :ClaudeCode to open Claude Code
  3. Paste a very large text into the input field
  4. Claude Code crashes and exits
  5. Run :ClaudeCode again
  6. 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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions