[BUG] StatusLine not displaying output on Windows 11 + PowerShell despite successful execution
Environment:
- Platform: Anthropic API
- Claude Code version: Latest (as of August 2025)
- Operating System: Windows 11
- Terminal: PowerShell 7.5.2
- Git version: 2.x
Bug Description:
StatusLine configuration executes successfully but output is never displayed in the Claude Code
interface. Commands run and produce correct output when tested manually, but the statusline never appears at the bottom
of the terminal.
Steps to Reproduce:
- Configure statusLine in ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "C:/Users/username/.claude/statusline.bat"
}
}
- Create a simple statusline script:
@echo off
echo [Claude 4 Sonnet] 📁 Projects 🌿 main
echo Script executed at %date% %time% >> C:\Users\username\.claude\statusline.log
- Test script manually (works correctly):
> C:\Users\username\.claude\statusline.bat
[Claude 4 Sonnet] 📁 Projects 🌿 main
- Restart Claude Code
- Check debug log - shows Claude Code did not executed the script
- StatusLine never appears in Claude Code interface
Expected Behavior:
StatusLine should display [Claude 4 Sonnet] 📁 Projects 🌿 main at the bottom of the Claude Code
terminal interface.
Actual Behavior:
- Script executes successfully (confirmed by debug logs) when run manually outside of CC, but not inside CC.
- No statusline appears in Claude Code interface
- No error messages or warnings
Additional Testing:
- Tested multiple script formats: PowerShell (.ps1), Batch (.bat), Bash (.sh)
- Tested with /statusline command - setup completes but still no display
- Tested various command configurations: direct paths, cmd /c wrapper, different padding
settings
- All scripts work perfectly when run manually from command line
- Debug logs confirm Claude Code executes the scripts at startup
Configuration Tested:
{
"statusLine": {
"type": "command",
"command": "C:/Users/username/.claude/statusline.bat",
"padding": 0
}
}
Related Issues:
This appears related to #5863 "Statusline not appearing when using command-line flags" - similar
symptoms where statusline executes but doesn't display.
Impact:
StatusLine feature is completely non-functional on Windows 11 + PowerShell environment despite
following official documentation exactly.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗