Change default sync_minutes from 0 to 10 in config, implement light...#10
Open
scaler-toad wants to merge 1 commit intomainfrom
Open
Change default sync_minutes from 0 to 10 in config, implement light...#10scaler-toad wants to merge 1 commit intomainfrom
scaler-toad wants to merge 1 commit intomainfrom
Conversation
- Set SyncMinutes default to 10 in config defaults() so repos are periodically fetched out-of-the-box without requiring explicit config - Update sync_minutes comment to reflect new default - Add stalenessNote() helper in ribbit that compares HEAD vs origin/HEAD and appends a Slack warning when the local checkout is behind remote Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
Change default sync_minutes from 0 to 10 in config, implement lightweight staleness check for ribbits that compares HEAD vs origin
Linear: PLF-3250
View Slack thread
Category: feature | Size: small
Suggested reviewers: @HergenD
Slack context
Implement two changes:
1. Change default sync_minutes from 0 to 10
In
internal/config/config.go, thedefaults()function (line 154) does not setRepos, soSyncMinutesdefaults to Go's zero value (0 = disabled). Add aReposfield to the returned struct:Also update the comment on line 42 from
// periodic git fetch interval; 0 = disabled (default)to// periodic git fetch interval; 0 = disabled, default 10.2. Add lightweight staleness check to ribbits
In
internal/ribbit/ribbit.go, add a package-level helper function:Add
os/execto the import block (it is not currently imported in ribbit.go).In
Engine.Respond(), after the agent result is obtained and the empty-check passes (around line 162), append the staleness note:The note is appended only when HEAD and origin/HEAD differ, which is a purely local ref comparison with no network cost.
🐸 Created by toad tadpole