statusLine not displayed when CWD contains non-ASCII (Japanese) characters
Resolved 💬 3 comments Opened Mar 22, 2026 by MasudaKaisei Closed Mar 26, 2026
Description
The statusLine setting in ~/.claude/settings.json does not display when Claude Code is launched from a directory containing non-ASCII characters (specifically Japanese characters).
Steps to Reproduce
- Configure
statusLinein~/.claude/settings.json:
``json``
{
"statusLine": {
"type": "command",
"command": "bash /c/Users/kaika/.claude/statusline-command.sh"
}
}
- Launch Claude Code from a path with Japanese characters, e.g.:
C:\Users\kaika\OneDrive\デスクトップ\ノーコード総研\案件\研修
- Status line is not displayed.
- Launch Claude Code from an ASCII-only path, e.g.:
C:\Users\kaika or C:\Users\kaika\homecom
- Status line is displayed correctly.
Investigation
- The statusline command script works correctly when tested manually with Japanese CWD and Japanese strings in JSON input — the issue is not in the script itself.
- No project-level
settings.jsonoverride exists; the global config is the only one withstatusLine. - The
.claude/projects/directory encodes Japanese characters as dashes (e.g.,C--Users-kaika-OneDrive---------------------), which may be related to internal path resolution issues. - Tested with
"statusLine": "test status"(plain text type) — same behavior, so this is not specific to command execution.
Environment
- Claude Code version: 2.1.81
- OS: Windows 11 Home 10.0.26200
- Shell: Git Bash
- Platform: win32
- Non-working path:
C:\Users\kaika\OneDrive\デスクトップ\ノーコード総研\案件\研修 - Working paths:
C:\Users\kaika,C:\Users\kaika\homecom
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗