Detail bug report: View on Detail
Closes #173
When a reviewer (or label) sync produced zero results, replaceRepoReviewers/replaceRepoLabels deleted all rows and inserted none, so the sync timestamp was never recorded. Freshness was derived solely from max(row.synced_at) across per-item rows — an empty set has no rows, so syncedAt stayed null forever. The read path treats null as "never synced," so every open of the reviewer/label panel re-queued a sync, defeating the 24-hour (reviewers) and 60-second (labels) staleness throttle. The worker job had the same gap: it returned early without stamping when GitHub reads were disabled or the repo was on a non-GitHub forge.
Added a repo_sync_stamps table (per-repo, per-kind, composite PK) that records the sync time unconditionally — following the convention already used by upsertRepoSuggestions, which stamps updatedAt even for empty results.
replaceRepoReviewers/replaceRepoLabels upsert the stamp inside their transaction, even when the result set is emptylistRepoReviewers/listRepoLabels/lastReviewerSync return max(stamp, max(row.synced_at))stampRepoReviewerSync/stampRepoLabelSync functions let the worker record a stamp without touching the per-item rowsreviewers.integration.test.ts: empty sync records the timestamp and engages the throttle; repeated empty syncs update the stamp; empty-after-non-empty and non-empty-after-empty both work; stampRepoReviewerSync records without touching rows; cascade-delete clears the stampnull/stale, an empty sync records the stamp and stops re-queueing, a second read stays fresh, 25h later it's stale again, and disabled reads (http: null) also stamp correctly — same for labelsAutomatic Fixes PRs can be configured here.
The latest updates on your projects. Learn more about Unkey Deploy
| Name | Status | Preview | Inspect | Updated (UTC) |
|---|---|---|---|---|
| tripwire / web (preview) | Ready | Visit Preview | Inspect | Nov 7, 2026 6:57am |
@detail-app[bot], Tripwire blocked this change request.
Rate limit: You opened 61 change requests in a short time. Wait before you open another.
A new commit will not fix this.
If you think it should merge anyway, say so in a comment. A maintainer will decide.
Re: github.com/Boring-Software-Inc/…/186
This is an infra rate-limit block (61 change requests opened in a short window), not a code issue — the tripwire run itself states a new commit will not fix it. No PR-side change can resolve it, so I'm leaving the merge decision to a maintainer.
Sign in to comment.