Feature Request - refresh status line on an interval
It would be very helpful if the statusline script could be configured to automatically refresh on an interval. Right now it only updates after you interact with Claude.
As an example, I added a statusline script that will check Github to see the status of the PR associated with the branch I'm working on. I would like that status to update every minute or so, even if there hasn't been any activity in Claude code. I often leave it Claude code idling in a terminal window and hop back to it when I need it. If I haven't interacted with Claude code for a while, the status line can be out of date.
I imagine a refreshIntervalSeconds setting like this:
{
"statusLine": {
"type": "command",
"command": "ruby ~/.claude/statusline.rb",
"refreshIntervalSeconds": 30
}
}
This would cause my statusline script to be run at least every 30 seconds, even if there hasn't been any activity within my Claude code session.