Repository navigation
Wait for each answer's reading to apply before the press check reads its next control - #6064
Merged
Merged
Conversation
…its next control The press check over controls (`press_each_control`) waited after each press with its own condition, `DELIVERED`, which read only the ledger's `pending` list. That is a weaker copy of `render_harness.round_trip`, which also waits for every send to be acked and for every reading the answers carried to be applied. Under the weaker wait, a reading applied after the check moved on could move the panel's controls after the sweep had read them. That is one possible cause of the macOS nightly failure in #6048, where the panel sweep on `thread-panel-gallery` reported "no settlement was checked" for a thread: the thread's Resolve is never recorded, since it moves the panel on, so the check rests on a later Reopen that a moved control could skip. The failure did not reproduce here (18 of 18 copies under `--cpu-throttle 6`), so this change rests on removing the second wait. The sweep now uses `round_trip`, with the ledger reader attached in `open_served` because the sweep opens its page on the unwatched browser.
leaf-agent
approved these changes
Nov 15, 2026
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 press check over controls (
press_each_control) waited after each press with its own condition,DELIVERED, which read only the ledger'spendinglist. That is a weaker copy ofrender_harness.round_trip, which also waits for every send to be acked and for every reading the answers carried to be applied. The sweep now usesround_trip, andopen_servedattaches the ledger reader, since the sweep opens its page on the unwatched browser.This may be the cause of one of #6048's macOS nightly failures: the panel sweep on
thread-panel-galleryreported "no settlement was checked" for a thread. A reading applied after the sweep moved on could move the panel's controls after it read them, skipping the Reopen the check rests on. The failure didn't reproduce here (18 of 18 copies under--cpu-throttle 6), so the change stands on removing the second wait rather than on a reproduction.Ten cases of the two sweeps pass on this Mac (five widget pages, five corpus pages,
thread-panel-galleryamong them).max-sixty asked for fixes to the macOS-only test failures; they haven't read this yet.
Refs #6048