Skip to content

fix: clear stale refresh failure on next success#91

Merged
ravinald merged 1 commit into
mainfrom
fix/clear-stale-refresh-failure
Jun 16, 2026
Merged

fix: clear stale refresh failure on next success#91
ravinald merged 1 commit into
mainfrom
fix/clear-stale-refresh-failure

Conversation

@ravinald

Copy link
Copy Markdown
Owner

Summary

show api status no longer reports a stale failure after recovery: a successful refresh now zeroes LastFailure/LastError instead of carrying the failure forward as history, since the success is always newer than the failure. Verified: go vet and go test ./internal/vendors/ ./cmd/ pass, including a new test that records a failure then a success and asserts both fields clear.

A successful refresh is always newer than any prior failure, so carrying
LastFailure forward made `show api status` report a stale failure after
recovery. Zero LastFailure/LastError on the success path instead.
@ravinald ravinald merged commit 69c8283 into main Jun 16, 2026
@ravinald ravinald deleted the fix/clear-stale-refresh-failure branch June 16, 2026 17:08
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