Throttle auto-update and remove duplicate fetch logic#120
Open
kbrock wants to merge 2 commits intoericbuess:mainfrom
Open
Throttle auto-update and remove duplicate fetch logic#120kbrock wants to merge 2 commits intoericbuess:mainfrom
kbrock wants to merge 2 commits intoericbuess:mainfrom
Conversation
- Add 3-hour throttle to auto_update() so docs fetch at most once per 3 hours, matching the GitHub Actions update cadence - Replace duplicated inline fetch/pull in read_doc() with auto_update() call - Remove no-op PreToolUse hook from installer (auto_update handles freshness) - Keep hook-check case arm for backward compatibility with existing installs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The -t flag means "check freshness" so it should always fetch, bypassing the 3-hour throttle. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Thank you for the great project
Summary
auto_update()— matches the GitHub Actions update cadenceread_doc()withauto_update()call/docs -tbypasses the throttle for explicit freshness checkshook-checkcase arm kept for backward compatibilityReasoning
/docs -twhen you updateclaude.exeTest plan
/docs hooks— should read instantly, fetch at most once per 3 hours/docs -t— should always fetch