statusLine.refreshIntervalMs is removed from settings.json when switching models
Status Closed — not planned
Reported on v2.1.129
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 2 comments · opened May 6, 2026 · 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 2 comments on GitHub. Read the full discussion on GitHub ↗