Skip to content

feat: add auto-fetch with configurable interval#17

Merged
zelon merged 2 commits into
mainfrom
claude/tauri-feature-review-y3kVA
May 16, 2026
Merged

feat: add auto-fetch with configurable interval#17
zelon merged 2 commits into
mainfrom
claude/tauri-feature-review-y3kVA

Conversation

@zelon
Copy link
Copy Markdown
Owner

@zelon zelon commented May 15, 2026

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

claude added 2 commits May 15, 2026 03:37
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
@zelon zelon merged commit c2d1105 into main May 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants