[BUG] Claude Code TUI text input box overshoots right edge (width miscalc) — regression in 1.0.113

Resolved 💬 2 comments Opened Sep 15, 2025 by falloutphil Closed Sep 15, 2025

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?

Issue shown on 1.0.113:
<img width="1826" height="429" alt="Image" src="https://github.com/user-attachments/assets/11ca5939-25a3-4f3e-9689-55848239fdfe" />

Correct rendering of TUI textbox on 1.0.110:
<img width="1744" height="409" alt="Image" src="https://github.com/user-attachments/assets/95a0a7fd-9293-462c-93ae-c188cebfd8fa" />

Summary

Since updating to Claude Code 1.0.113, the interactive TUI text input box does not close on the right edge.

Downgrading to 1.0.110 fixes the issue immediately on the same machine and terminal, so this appears to be a regression introduced between 1.0.110 and 1.0.113.

Environment

  • Terminal: Windows TerminalWSL (Linux)
  • Install type(s) affected:
  • npm-global 1.0.113 (initially)
  • native binary 1.0.113 (after reinstall via install.sh)
  • Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
  • Reported size: COLUMNS=93; stty size49 93; shutil.get_terminal_size()os.terminal_size(columns=93, lines=49)
  • Fonts tried: MesloLGS Nerd Font Mono (Powerlevel10k), JetBrainsMono NF Mono, Cascadia Mono, etc. (no change)
  • Display: same scaling/settings across tests
  • Node present but not used after native install: v23.10.0

Version details

  • Broken: 1.0.113
  • claude doctor:
  • npm-global: /home/foo/.nvm/versions/node/v23.10.0/bin/claude
  • native: ~/.local/share/claude/versions/1.0.113
  • Works: 1.0.110 (native install via install.sh | bash -s 1.0.110)

Attachments

  • Screenshot A: Claude 1.0.113 banner overshooting
  • Screenshot B: Claude 1.0.110 banner closing correctly

What Should Happen?

Expected Behavior

Claude’s input box should compute visible line width correctly (ignoring ANSI escape sequences, OSC-8 hyperlinks, variation selectors, etc.) so the right border meets the corner at the terminal’s last column.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Open Windows Terminal → WSL
  2. Open claude-code

Control checks (same session) - this proves it's not a font or console issue

  • ASCII test box closes correctly:

``bash
cols=$(tput cols)
printf '┌'; printf '─%.0s' $(seq 1 $((cols-2))); printf '┐\n'
printf '│%s│\n' "plain text line"
printf '└'; printf '─%.0s' $(seq 1 $((cols-2))); printf '┘\n'
``

Actual Behavior

On 1.0.113, the text box overshoots the RHS of screen.

Regression Window

  • Good: 1.0.110
  • Bad: 1.0.113

(Installer type doesn’t matter; reproduced with npm-global and native.)

Workarounds Tried

  • Switch fonts (Meslo NF Mono, JetBrainsMono NF Mono, Cascadia Mono) → no change
  • Strip color / disable hyperlinks via env vars → no change
  • Different terminal width → still repro
  • Downgrade to 1.0.110resolves (current workaround)

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.0.110

Claude Code Version

1.0.113

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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