feat: add refreshInterval configuration for Claude Code status line - #297
Merged
Merged
Conversation
Add a new "Configure Status Line" menu option (visible when ccstatusline is installed) that lets users set the Claude Code statusLine refreshInterval. The setting is written directly to Claude Code's settings.json. - Add refreshInterval to ClaudeSettings statusLine interface - Add getRefreshInterval/setRefreshInterval utility functions - Add Claude Code version detection (claude --version) with 5s timeout - Gate refreshInterval behind Claude Code >=2.1.97 version check - Default to 10s on fresh install, preserve existing value on re-install - Show disabled state with version requirement message for older versions - Add RefreshIntervalMenu TUI component with inline numeric input - Add isKnownCommand path-boundary matching for local dev commands - Add comprehensive tests for version detection, install flow, and validation
Owner
|
Thanks for this, I'll publish it in the next release |
pcvelz
added a commit
to pcvelz/ccstatusline-usage
that referenced
this pull request
Apr 17, 2026
Bring in upstream changes: - feat: add refreshInterval configuration for Claude Code status line (sirmalloc#297) - feat: support xhigh thinking effort level (sirmalloc#314) - chore(deps-dev): bump the dev-dependencies group (sirmalloc#301, sirmalloc#316) - chore(deps-dev): bump https-proxy-agent from 7.0.6 to 8.0.0 (sirmalloc#302)
pcvelz
added a commit
to pcvelz/ccstatusline-usage
that referenced
this pull request
Apr 17, 2026
…2.3.16) When session usage hit 100% but weekly was still below 100%, the Reset Timer widget incorrectly showed the weekly reset time (hours/days away) instead of the session reset countdown (5-hour window). Session and weekly limits reset independently — session filling up on its own shouldn't swap the timer to the weekly reset. Extra usage only kicks in when weekly itself hits 100% (or on a charged [1m] model). Also folds in: - Opus 4.6 → 4.7 model references throughout docs, examples, tests - Upstream sync (5 commits): refreshInterval (sirmalloc#297), xhigh thinking effort (sirmalloc#314), dev-dep bumps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
refreshIntervalsetting (in seconds) that controls how often Claude Code re-runs the status line commandclaude --versionand gates the feature behind>=2.1.97(shows disabled with version requirement message for older versions)Changes
ClaudeSettings.ts: AddrefreshIntervalto statusLine interfaceclaude-settings.ts: AddgetClaudeCodeVersion(),isClaudeCodeVersionAtLeast(),getRefreshInterval(),setRefreshInterval(), pass version support flag toinstallStatusLine()RefreshIntervalMenu.tsx: New TUI component with inline numeric input (1-60s range, empty to remove)MainMenu.tsx: Show "Configure Status Line" + "Uninstall" when installed (was single toggle)App.tsx: Wire up new screen, state, error handling with rollbackisKnownCommand(): Use path-boundary regex for local dev command matchingTest plan
bun test)bun run lint)~/.claude/settings.json