Skip to content

Wait for each answer's reading to apply before the press check reads its next control - #6064

Merged
max-sixty merged 1 commit into
mainfrom
pressed-controls-round-trip
Nov 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
pressed-controls-round-trip

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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. The sweep now uses round_trip, and open_served attaches 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-gallery reported "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-gallery among them).

max-sixty asked for fixes to the macOS-only test failures; they haven't read this yet.

Refs #6048

This was written by Claude Code on behalf of max-sixty

…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.
@max-sixty
max-sixty merged commit 6d075cd into main Nov 15, 2026
4 of 5 checks passed
@max-sixty
max-sixty deleted the pressed-controls-round-trip branch November 15, 2026 19:55
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.

2 participants