Skip to content

Feature: Customizable automatic repository refresh interval #844

Description

@pacificleo

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

Currently, the automatic repository refresh interval (which sweeps for GitHub PR updates and SSH remote branch changes) is hardcoded to 5 minutes (.seconds(300)). While background polling can be disabled entirely, users cannot adjust the frequency. Some users hitting GitHub API rate limits or excessive SSH passphrase prompts may wish to reduce the polling frequency, while others may want more aggressive updates.

Describe the solution you'd like

I would like to expose automaticRepositoryRefreshInterval in the Worktree settings as a customizable text field. It should default to 5 minutes (to preserve current behavior) but allow the user to input any number of minutes.

When the setting is updated, WorktreeInfoWatcherManager should dynamically tear down its existing loop and restart it with the new interval without requiring an app restart.

Describe alternatives you've considered

No response

Are you planning to implement this yourself?

  • I intend to open a pull request once this is confirmed and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I understand pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions