[BUG] claude code CLI - Terminal screen goes blank when typing after restoring VS Code panel from maximized state

Resolved 💬 8 comments Opened Feb 18, 2026 by komealy Closed Mar 28, 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?

Environment

  • OS: macOS (Darwin 25.3.0)
  • IDE: VS Code version: 1.109.4
  • Claude Code version: 2.1.45

Expected behavior

Typing should continue to render normally after restoring the panel from maximized state.

Actual behavior

The terminal screen goes blank on the first space character typed after restoring. Ctrl+C forces a re-render and recovers.

Notes

  • The space character appears to be the specific trigger — typing non-space characters before the first space does not cause the blank.
  • This is reproducible every time with the above steps.
  • Likely a terminal resize/reflow issue: the TUI renderer may be holding stale dimensions from the maximized state, and the input component recalculates layout at word boundaries (spaces), causing escape sequences that clear or overflow the visible viewport at the smaller restored size.

What Should Happen?

No screen blanking.
No interruption of input.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in the VS Code integrated terminal.
  2. Click the internal terminal maximize button to fill the VS Code window with the terminal panel.
  3. Submit at least one chat message while the terminal panel is maximized.
  4. Restore the panel back to its original (non-maximized) size.
  5. Begin typing a new message. As soon as you type a space character, the terminal screen goes completely blank.
  6. Pressing Ctrl+C resets the terminal and the input becomes visible again.

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.45

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗