Skip to content

Test widget action readiness before the first saved-state read - #2732

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38333313254-outbox
Oct 13, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-38333313254-outbox

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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.

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
leaf-agent merged commit 3400321 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38333313254-outbox branch October 13, 2026 04:59
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]>
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.

1 participant