Repository navigation
fix(dashboard): keep Bay pressure trend current - #569
Merged
Merged
Conversation
vincentkoc
force-pushed
the
fix/bay-handoff-pressure-current
branch
from
July 14, 2026 15:04
ca76609 to
5949242
Compare
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.
Depends on #555
Carries the contributor implementation from #567 because that branch is not maintainer-editable and exact ClawSweeper review found required correctness fixes. The original
brokemac79commit and authorship remain intact in this branch.What Problem This Solves
Fixes two misleading pressure states in OpenClaw Bay: stale persisted history could disagree with the live queue count after a best-effort write failure, and a fresh one-point series could be described as steady even though no trend existed.
Why This Change Was Made
The bounded Durable Object history and Bay chart from PR 567 are preserved. The queue
/statsresponse overlays the current queue point onto stored history before returning it, so every consumer sees a series whose final point matches live pending, dispatching, and leased counts even when persistence failed. Bay keeps zero- and one-point series in the collecting state while still displaying the live pending count; trend language starts only after two observations. This branch is stacked on PR 555 so current pressure state and historical pressure remain one coherent status contract.User Impact
Bay operators get the contributor-built three-hour queue trend without contradictory live counts or invented one-sample trends. Queue admission, claims, completion, polling, and GitHub API behavior are unchanged.
Evidence
tsc -p tsconfig.dashboard.jsontsc -p tsconfig.jsongit diff --check/statsfinal point matching the live count7, and no rendered trend lineExact local ClawSweeper review is clean on commit
93b7121abb; patch, proof, and overall tiers are A with no findings.