docs: fix jsonc trailing commas that break settings parser

The settings parser uses stripJsonComments + JSON.parse, which does
not support trailing commas. Changed the config example from jsonc
to json and removed trailing commas so users can copy-paste safely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
wenshao 2026-04-06 18:48:25 +08:00
parent 813d863e7c
commit 5b9c94b436

View file

@ -33,18 +33,17 @@ You can also give it specific instructions:
## Manual configuration
Add a `statusLine` object under the `ui` key in your settings file:
Add a `statusLine` object under the `ui` key in `~/.qwen/settings.json`:
```jsonc
// ~/.qwen/settings.json
```json
{
"ui": {
"statusLine": {
"type": "command",
"command": "input=$(cat); echo \"$(echo $input | jq -r '.model.id') ctx:$(echo $input | jq -r '.context_window.last_prompt_token_count')\"",
"padding": 0,
},
},
"padding": 0
}
}
}
```