Repository navigation
Test widget action readiness before the first saved-state read - #2732
Merged
Merged
Conversation
Since #2649, widget actions wait for complete saved history. The old board case tried to send while its first read was refused, so it could never reach the undo assertion. Replace that unreachable setup with a browser check that board and suggestion controls remain unavailable until the first complete read. Existing adjacent tests cover an action and undo arriving in the same later reading; the replacement cases and the corrected settlement case pass.
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
`server stop` now returns false when it encounters only a private listener lease with no `service.json`. Its old-record fallback counted any held lease as a running service, so the return value depended on whether stop observed a listener just before or just after its preparation ended. This surfaced as an intermittent failure in [PR #2732's CI run](https://github.com/max-sixty/leaf/actions/runs/38346418426). An existing but unreadable service record still takes the fallback path. A deterministic test holds the private lease at the stop decision: it fails on the previous code and passes with this change. The original private-preparation process test and adjacent stop cases also pass (five focused cases total). Co-authored-by: leaf-agent <[email protected]>
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.
The board's old outbox browser case tried to send a widget action before the first complete saved-state reading. Since #2649, actions deliberately wait for that reading, so the test timed out before it could exercise undo. Replace that unreachable setup with a browser check that board and suggestion controls are unavailable while history is offline and become available after the first complete read. This addresses the board failure in main CI run 38333313254; #2699 separately repaired the suggestion settlement case.
Both replacement browser cases pass. The existing action-plus-undo check and #2699's corrected settlement check also pass, so the undo behavior remains covered.