Skip to content

[feature] updater: periodic re-check while the app stays open - #46

Merged
YJack0000 merged 1 commit into
mainfrom
claude/hardcore-elgamal-e14684
Jun 24, 2026
Merged

YJack0000 merged 1 commit into
mainfrom
claude/hardcore-elgamal-e14684

Conversation

@YJack0000

Copy link
Copy Markdown
Contributor

Summary

The in-app updater only checked once, 3 seconds after launch (src/App.tsx). A window left open for hours never noticed a release that shipped after startup.

This adds a slow recurring check on top of the launch check:

  • Launch check at +3s (unchanged)
  • Re-check every 30 minutes while the app stays open
  • Both use the same silent check and only surface the dismissible UpdateBanner; applying an update is still user-initiated, so it never interrupts a meeting

30 min (not 1 min) because the check hits the GitHub releases endpoint — unauthenticated requests are rate-limited to 60/hour, and a tighter interval risks failed checks for no real benefit.

Test Coverage

No new code paths to unit-test meaningfully — the change is a setInterval inside an existing useEffect, with the timer cleared on unmount. Existing suite covers the rest.

Test plan

  • tsc --noEmit clean
  • Vitest: 75 tests pass

🤖 Generated with Claude Code

…ays open

The launch check only ran once, 3s after startup, so a long-running window
never noticed a release that landed after open. Add a 30-min interval that
re-runs the silent check; still surfaces only the dismissible banner, applying
stays user-initiated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@YJack0000
YJack0000 merged commit bbcee81 into main Jun 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

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