Plan mode permission options (writing) don't wrap in narrow Windows Terminal / split pane
Bug Description
In plan mode, the permission prompt offers several predefined options and a free-text "write" input (the last option). When actively typing in the write/free-text input field, the text does not wrap to fit the terminal width — it overflows horizontally.
However, when you navigate away from the write field (e.g., arrow up to a predefined option), the text you typed does wrap correctly. The wrapping issue is only present while the write input is focused and you're typing into it.
The predefined options above it wrap correctly at all times.
Steps to Reproduce
- Open Windows Terminal with a vertical split pane (narrow width)
- Run
claudeand enter plan mode - At the permission prompt, navigate to the last option (free-text write input)
- Start typing — observe the text overflows horizontally without wrapping
- Arrow up to a predefined option — observe the write field text now wraps correctly
- Arrow back down to the write field — wrapping breaks again while typing
Expected Behavior
Text typed into the write input field should wrap to the available terminal width in real-time, just as it does when the field loses focus.
Actual Behavior
- Typing in write field: text overflows, no wrapping
- Navigate away from write field: text wraps correctly
- Predefined options: always wrap correctly (no issue)
Environment
- OS: Windows 11 Pro (10.0.26100)
- Terminal: Windows Terminal with split pane
- Shell: bash (Git Bash / MSYS2)
- Claude Code version: Latest (as of 2026-03-03)
Related Issues
- #21037 — Multiple choice prompts don't line break correctly in narrow terminal panes
- #28547 — Secondary input fields truncate with "..." instead of wrapping
- #22115 — statusLine terminal columns detection
Likely a terminal width calculation issue specific to the focused text input component — it seems to measure/apply column width on blur but not during active input.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗