Skip to content

Commit view should auto-refresh, independently of auto-fetch #5554

@glasser

Description

@glasser

Is your feature request related to a problem? Please describe.

I often make commits to my repo outside of lazygit. Notably these days, these commits are often made by my Claude Code, and I'm using lazygit to see the changes CC has made.

While the files view auto-refreshes at refreshInterval to show uncommitted changes, the commits list does not refresh that frequently. It only refreshes downstream of fetching from upstream (fetchInterval), which probably should be a less frequent operation as it's a remote operation rather than local.

It would be nice if locally-made commits showed up in the commits view independently of the slower remote fetch.

Describe the solution you'd like

The refresh done at refreshInterval refreshes the commits view, or some other opt-in setting to sets a commits-specific refresh interval.

Describe alternatives you've considered

Set fetchInterval to be 10 seconds instead of 60 — much more network/API usage.

I would be happy to contribute a PR to add commits refresh to the standard refreshInterval if that's a design you'd support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions