claude-code - 💡(How to fix) Fix [DOCS] Status line docs missing `refreshInterval` setting [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45465Fetched 2026-04-09 08:04:48
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Code Example

{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"refreshInterval": 5,
"padding": 2
}
}
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/statusline

Section/Topic

"Manually configure a status line" and "How status lines work"

Current Documentation

The docs currently say:

Add a statusLine field to your user settings (~/.claude/settings.json, where ~ is your home directory) or project settings. Set type to "command" and point command to a script path or an inline shell command.

{ "statusLine": { "type": "command", "command": "~/.claude/statusline.sh", "padding": 2 } }

And the update behavior section says:

Your script runs after each new assistant message, when the permission mode changes, or when vim mode toggles. Updates are debounced at 300ms, meaning rapid changes batch together and your script runs once things settle. If a new update triggers while your script is still running, the in-flight execution is cancelled.

The settings reference also currently shows only:

statusLine | Configure a custom status line to display context. See statusLine documentation | {"type": "command", "command": "~/.claude/statusline.sh"}

What's Wrong or Missing?

Claude Code v2.1.97 added a refreshInterval status line setting to re-run the status line command every N seconds, but the status line docs do not document that field at all.

The current page only documents event-driven re-execution and only shows type, command, and padding in configuration examples. Users cannot discover that periodic refresh is supported, what the setting name is, what units it uses, or how it interacts with the existing update triggers and cancellation behavior.

Suggested Improvement

Add refreshInterval to the status line configuration docs and the settings reference.

Suggested minimum addition under "Manually configure a status line":

refreshInterval re-runs the status line command on a timer in addition to the normal event-driven updates. The value is in seconds.

Add an example such as:

{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"refreshInterval": 5,
"padding": 2
}
}

The docs should also clarify:

  • whether the timer supplements or replaces the existing "after each assistant message / permission mode change / vim mode toggle" updates
  • whether the interval is measured in seconds
  • any default behavior when refreshInterval is omitted
  • how timer-driven reruns interact with cancellation of in-flight status line commands

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/statuslinePrimary status line documentation; manual configuration example omits refreshInterval, and the update-behavior section only describes event-driven reruns
https://code.claude.com/docs/en/settingsstatusLine settings reference example omits refreshInterval

Total scope: 2 pages affected

Source: Changelog v2.1.97

Exact changelog entry:

Added refreshInterval status line setting to re-run the status line command every N seconds

extent analysis

TL;DR

Add refreshInterval to the status line configuration documentation and settings reference to inform users about the periodic refresh feature.

Guidance

  • Update the "Manually configure a status line" section to include refreshInterval in the configuration example and explain its purpose.
  • Add a description of refreshInterval to the settings reference, including its unit of measurement (seconds) and default behavior when omitted.
  • Clarify how the timer-driven reruns interact with the existing event-driven updates and cancellation behavior.
  • Review the documentation for consistency and accuracy to ensure users can understand how to use the refreshInterval feature effectively.

Example

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh",
    "refreshInterval": 5,
    "padding": 2
  }
}

This example shows how to configure the refreshInterval setting to re-run the status line command every 5 seconds.

Notes

The documentation update should cover the interaction between refreshInterval and the existing update triggers, as well as the cancellation behavior of in-flight status line commands.

Recommendation

Apply workaround by adding the missing documentation for refreshInterval to the status line configuration docs and settings reference, as this will provide users with the necessary information to use the feature effectively.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING