[BUG] CLI display misaligned and premature input validation in PhpStorm 2025.3.2

Resolved 💬 6 comments Opened Jan 27, 2026 by atournayre Closed Mar 3, 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?

The CLI interface in PhpStorm 2025.3.2 terminal has two critical display and interaction issues:

  1. Visual misalignment: Text output appears shifted or incorrectly positioned, breaking the visual layout
  2. Premature input validation: The interactive question interface (AskUserQuestion) validates/submits responses before the user finishes typing

Concrete example of premature validation:
When asked to provide the PhpStorm version via the interactive question interface:

  • User selected an option from the list
  • Started typing the actual version "2025.3.2" in the "Other" field
  • Interface validated and submitted before typing was complete
  • This captured incorrect data (showing "2024.1" instead of "2025.3.2")

This issue appeared suddenly today (2026-01-27) after working correctly in previous sessions.

What Should Happen?

  1. The CLI interface should display correctly with proper line alignment and formatting
  2. Interactive prompts should wait for explicit user confirmation (Enter key) before validating responses
  3. Users should be able to complete their text input without premature submission

Error Messages/Logs

No specific error messages - these are visual rendering and input handling issues affecting the terminal interface behavior.

Steps to Reproduce

For visual misalignment:

  1. Open PhpStorm 2025.3.2
  2. Open the built-in terminal (Tools → Terminal)
  3. Launch Claude Code CLI
  4. Observe the misaligned lines in the interface output

For premature validation:

  1. Launch Claude Code in PhpStorm terminal
  2. Trigger any interactive question prompt (AskUserQuestion)
  3. Start typing a response in a text field
  4. Notice the response gets validated/submitted before completing input

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown - issue appeared on 2026-01-27

Claude Code Version

Latest

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

PyCharm terminal

Additional Information

Environment:

  • PhpStorm version: 2025.3.2
  • OS: Linux 6.14.0-123037-tuxedo
  • TERM: xterm-256color
  • Date issue appeared: 2026-01-27

Screenshots: Will be attached showing both the visual misalignment and the interactive question interface issues.

The problems seem specific to PhpStorm's terminal emulator, as the terminal configuration (TERM type, etc.) hasn't changed recently.

View original on GitHub ↗

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