claude-code - 💡(How to fix) Fix AskUserQuestion 'Other' text input wraps too early on wide terminals [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46063Fetched 2026-04-11 06:29:57
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

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.

Root Cause

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.

RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

The issue can be addressed by adjusting the text wrapping behavior in the AskUserQuestion function to utilize the full terminal width.

Guidance

  • Investigate the AskUserQuestion function to identify the hardcoded column limit (approximately 75 columns) and consider making it dynamic based on the terminal width.
  • Verify that the terminal width is correctly detected and passed to the AskUserQuestion function.
  • Review related issues (#39867 and #28326) to see if they provide insight into the text wrapping behavior or potential solutions.
  • Consider adding a configurable option for the maximum text width, as suggested in #28326, to allow users to customize the behavior.

Example

No specific code snippet can be provided without more information about the AskUserQuestion function implementation.

Notes

The solution may require changes to the Claude Code CLI or its dependencies, and it's essential to test the fix on different terminal widths and platforms to ensure compatibility.

Recommendation

Apply a workaround by modifying the AskUserQuestion function to use the full terminal width, as this is a more targeted solution than upgrading to a potentially non-existent fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix AskUserQuestion 'Other' text input wraps too early on wide terminals [1 comments, 2 participants]