fix(auto-updater): add conditional timestamp update and reduce check interval - #179
Merged
Merged
Conversation
…interval - Reduce CHECK_INTERVAL from 6 hours to 1 hour for faster update detection - Add conditional timestamp update: only update when success_count > 0 - Fix critical bug where timestamp was updated even when all plugins failed - Add comprehensive BATS tests for timestamp update logic and interval verification - Add logging for timestamp update events (updated/skipped) This prevents failed updates from blocking retry attempts for 1 hour, allowing faster recovery from transient network or plugin installation failures. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
baleen37
enabled auto-merge (squash)
January 26, 2026 05:37
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes modify the auto-updater behavior by reducing the execution interval from 6 hours to 1 hour and making timestamp updates conditional—only updating when plugins are successfully installed, rather than updating unconditionally on every run. Changes
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly Related PRs
Poem
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jan 27, 2026
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.
Summary
success_count > 0Problem
Critical Bug: The timestamp was unconditionally updated at the end of
update-all-plugins.sh, even when all plugins failed to install/update. This prevented retry attempts for 6 hours (now 1 hour), blocking recovery from transient network or plugin installation failures.Before:
Impact:
Solution
Conditional Timestamp Update:
Check Interval Reduction:
Testing
New Test File:
plugins/auto-updater/tests/timestamp-update.batsTest Results:
Orchestration Workflow
This fix was validated through a complete bugfix workflow:
Final Verdict: SHIP ✅ (after implementing recommended fixes)
Files Modified
plugins/auto-updater/hooks/auto-update-hook.sh(1 line)plugins/auto-updater/scripts/update-all-plugins.sh(12 lines added)plugins/auto-updater/tests/timestamp-update.bats(118 lines, new file)Benefits
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.