Skip to content

perf: optimize GitHub PR polling to avoid rate limits#17

Merged
piotrostr merged 2 commits intomainfrom
simplify-gh-management
Feb 2, 2026
Merged

perf: optimize GitHub PR polling to avoid rate limits#17
piotrostr merged 2 commits intomainfrom
simplify-gh-management

Conversation

@piotrostr
Copy link
Owner

Summary

  • Add no-PR cache with 2 minute TTL to skip redundant lookups
  • Only do targeted lookups for branches that have worktrees
  • Rate limit to max 10 targeted lookups per poll cycle
  • Increase poll interval from 5s to 15s
  • Manual refresh (r) clears cache and triggers full PR refresh
  • Show syncing indicator in header during background refresh

Test plan

  • Tests pass
  • Clippy clean

piotrostr and others added 2 commits February 2, 2026 01:51
- Add no-PR cache with 2 minute TTL to skip redundant lookups
- Only do targeted lookups for branches that have worktrees
- Rate limit to max 10 targeted lookups per poll cycle
- Increase poll interval from 5s to 15s
- Manual refresh (r) clears cache and triggers full PR refresh

Co-Authored-By: piotrek & opus <noreply@anthropic.com>
Shows animated spinner with "syncing" text when PR info,
worktrees, or sessions are loading in the background.

Co-Authored-By: piotrek & opus <noreply@anthropic.com>
@piotrostr piotrostr merged commit 8ff5d58 into main Feb 2, 2026
1 of 2 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.

1 participant