Skip to content

Arrange preview startup interruption without blocking the stop - #2835

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38507012987-startup
Oct 14, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38507012987-startup

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run failed its preview startup test because the test held the page transaction lock while waiting for the preview server to stop. Since #2812, stopping checks the page's claim inside that transaction, so the stop could not complete and the test never arranged the interrupted fetch it meant to examine.

The test now aborts its first registry fetch when a runtime edit starts the preview replacement. It records that the startup notice was visible even if recovery navigates to a new document, then checks that the replacement serves the edited theme at the same address. This keeps the failure and recovery behavior under test without blocking the claim-guarded stop.

The failing test reproduced on the original main tree and passes on this branch against current main (uv run pytest -q -n0 tests/browser/test_render_export.py::test_a_service_that_goes_away_mid_start_says_only_that_and_comes_back). Pre-commit checks pass. The run's other failure, the async projection wake case, passes on merged #2830 and on current main.

The restart now checks its claim in the page transaction before stopping. The browser test's held event-log lock blocked that stop, so it could not create the interruption it meant to test. Abort the first registry fetch when the runtime edit starts the preview replacement, record the visible startup notice across navigation, and verify that the restarted preview serves the updated theme.
@leaf-agent
leaf-agent merged commit 84e7928 into main Oct 14, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38507012987-startup branch October 14, 2026 05:47
leaf-agent added a commit that referenced this pull request Oct 14, 2026
The floating On panel now titles itself by its active list. Its browser
test still expected the thread view's back link to say “On”; the visible
link says “On me” when the user entered from that list. This PR updates
the assertion to the chosen title and keeps the return navigation check.

The case failed on [main CI run
38512364290](https://github.com/max-sixty/leaf/actions/runs/38512364290)
and passes with this change (`uv run pytest -q -n0
tests/browser/test_render_floating_panel.py::test_on_shows_an_ask_as_its_message_and_reply_comes_back`).
The run's startup and outbox cases pass on current `main`, which
includes #2835 and #2830. Its intermittent margin counter failure
remains tracked in #2793; the focused case passed four times on current
`main`.

Refs #2793

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