AskUserQuestion 'Other' text input wraps too early on wide terminals

Resolved 💬 3 comments Opened Apr 10, 2026 by drmaciej Closed May 22, 2026

Description

When using AskUserQuestion with the "Other" free-text input option, the text input area wraps at approximately column 75, regardless of the actual terminal width. On wide terminals (150+ columns), this wastes most of the horizontal space and forces unnecessary line breaks.

Steps to Reproduce

  1. Use a wide terminal (e.g., 200+ columns)
  2. Have Claude invoke AskUserQuestion with options
  3. Select "Other" to type a custom response
  4. Type a long sentence — text wraps at ~column 75 instead of using the full terminal width

Expected Behavior

The text input area should use the available terminal width, similar to the main prompt input.

Actual Behavior

Text wraps at ~75 columns regardless of terminal width. The line break occurs far before the right edge of the terminal.

Screenshot

<img width="1310" height="245" alt="Image" src="https://github.com/user-attachments/assets/422b7f03-c094-4671-ba33-4c27680c1aee" />

The input "i am typing here, still typing, waiting for a line break, when is the line break coming, it already came, see?" wraps after "when is the line" despite the terminal being much wider.

Related Issues

  • #39867 — AskUserQuestion option descriptions getting cut off (vertical truncation)
  • #28326 — Request for configurable max chat text width

Environment

  • Claude Code CLI v2.1.x
  • macOS (Darwin 25.4.0)
  • Terminal width: 200+ columns

🤖 Generated with Claude Code

View original on GitHub ↗

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