Skip to content

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

Description

@komealy

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions