Repository navigation
Server Health: build ranges from the cached week, newest build wins - #1059
Merged
Merged
Conversation
…1053) Android: selecting a range no longer re-reads the store. The week of pings and events from the last reload is cached and every range is built from it, so a failed store read can no longer leave the old range's chart under the new selector. A build whose range changed while it ran is dropped. iOS: a generation counter keeps an older rebuild for the same range from overwriting a newer one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h-review-followup
There was a problem hiding this comment.
Automated review: no finding that 2+ of 3 passes agreed on.
1 finding(s) from a single pass, not posted
android/app/src/main/java/dev/opencode/mobile/ui/serverhealth/ServerHealthViewModel.kt:165medium: selectRange no longer retries the store when no record was ever cached (glm-5.3-flash)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.056 · 1 pass(es) stopped early
…1053) If the first read failed there is no cached week to build from, so picking a range reloads from the store, as it did before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks
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.
Follow-up to #1055 for #1053. This addresses the review thread #1055 (comment) (Server Health report cache outlives a failed range reload) and the pr-review findings.
What changed
ServerHealthViewModel:reloadcaches the raw week of pings and events.selectRangenow builds the new range from that cache and does not re-read the store, so a failed store read can no longer leave the previous range's chart under the new selector. iOS already worked this way. A build is dropped if the selected range changed while it ran, so a slow Day build can't overwrite Week.ServerHealthViewModel: a rebuild generation counter means only the newest rebuild applies. Before this, an older rebuild for the same range (for example,selectRangeracing a revision reload) could land after a newer one.Checks
selectRange_buildsTheNewRangeEvenWhenTheStoreFails. Local runs were slowed by machine load, so CI verifies this.Risks / Follow-ups
saveProfilerollback racing a concurrent save. The snapshot rollback existed before Keep Server Health off the main thread while it opens #1055, and profile saves are serialized by the single edit flow.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.