[BUG] statusLine regression in v2.1.119 — command not executed on Windows

Resolved 💬 3 comments Opened Apr 24, 2026 by LorenzKueng Closed Apr 28, 2026

Description

The statusLine feature stopped working after upgrading from v2.1.112 to v2.1.119 on Windows 11. The status line was displaying correctly on v2.1.112 and disappeared after the upgrade. Confirmed on two separate Windows 11 machines.

Steps to Reproduce

  1. Configure a statusLine command in ~/.claude/settings.json:
{
  "statusLine": {
    "type": "command",
    "command": "python C:/Users/Kueng/.claude/statusline-command.sh"
  }
}
  1. Run claude in PowerShell 7 or Command Prompt
  2. Send a message

Expected Behavior

Status line displays at the bottom of the Claude Code interface showing model name, context window usage, and session usage.

Actual Behavior

No status line appears. The script executes correctly when run manually (piping JSON to it produces the expected output), so the issue is that Claude Code is not invoking the command.

Environment

  • Claude Code version: 2.1.119
  • Last working version: 2.1.112
  • OS: Windows 11 Pro
  • Shells tested: PowerShell 7, Command Prompt
  • Python version: 3.11.9

Additional Context

The script works correctly when tested manually:

echo '{"model":{"display_name":"Claude Sonnet 4.6"},"context_window":{"used_percentage":10}}' | python statusline-command.sh
# Output: Claude Sonnet 4.6 | Context: 10% used

This appears related to #31670 and #50679.

View original on GitHub ↗

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