statusLine.refreshIntervalMs is removed from settings.json when switching models
Resolved 💬 1 comment Opened May 6, 2026 by kichub Closed Jun 3, 2026
Describe the bug
When switching models via /model or config, Claude Code rewrites the statusLine section in settings.json and drops any custom properties (e.g. refreshIntervalMs) that are not part of its default schema.
Steps to reproduce
- Add
refreshIntervalMs: 1000to thestatusLineobject insettings.json - Switch model (e.g. via
/modelcommand) - Observe that
refreshIntervalMsis gone fromsettings.json
Expected behavior
Custom properties inside statusLine should be preserved when Claude Code updates unrelated settings (e.g. model).
Actual behavior
refreshIntervalMs is silently removed from settings.json.
Workaround
Put the setting in settings.local.json instead — it is not overwritten by model switching.
Environment
- OS: Windows 11
- Claude Code version: 2.1.129
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗