Repository navigation
Arrange preview startup interruption without blocking the stop - #2835
Merged
Merged
Conversation
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
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]>
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 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
maintree and passes on this branch against currentmain(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 currentmain.