feat: add auto-fetch with configurable interval#17
Merged
Conversation
Adds a background auto-fetch timer that periodically runs git fetch --all. - New useAutoFetch hook with 1-second countdown and skip logic when busy - AutoFetchIndicator button shows countdown (M:SS) or fetching state - Settings dropdown: enable/disable + interval (1/2/5/10/15/30 min) - Settings persisted to localStorage; resets countdown on repo switch - Auto-fetch skips silently if a manual operation is in progress https://claude.ai/code/session_01GwxvFwJmVysaUZgUHzPFNy
Auto-fetch now triggers silentRefreshKey instead of refreshKey. Tabs update data in-place without clearing state or showing spinners: - PendingTab: updates file status and sync status bar silently - BranchTab: updates branch list and ahead/behind counts silently - HistoryTab: reloads first page of commits silently Manual refresh (Refresh button, F5, push/pull) continues to use refreshKey and shows loading states as expected. https://claude.ai/code/session_01GwxvFwJmVysaUZgUHzPFNy
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.
Adds a background auto-fetch timer that periodically runs git fetch --all.
https://claude.ai/code/session_01GwxvFwJmVysaUZgUHzPFNy