[DOCS] Invalid JSON syntax in statusline configuration example
Resolved 💬 2 comments Opened Jan 25, 2026 by coygeek Closed Feb 7, 2026
Documentation Type
other
Documentation Location
https://code.claude.com/docs/en/statusline
Section/Topic
"Create a custom status line" section - JSON configuration example
Current Documentation
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0 // Optional: set to 0 to let status line go to edge
}
}
What's Wrong or Missing?
The JSON configuration example includes a C-style comment (// Optional: set to 0...), which is not valid in standard JSON. Users copying this example into their settings.json file will encounter a parsing error because JSON does not support comments.
Suggested Improvement
Remove the inline comment from the JSON example:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
}
}
Alternatively, add the note about padding being optional as a separate text block below the code example.
Impact
Medium - Makes feature difficult to understand
Additional Context
- This affects any user who copies the configuration verbatim
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗