Repository navigation
Description
Since #5307 ("Send a click only the records it changed"), six outbox and render-gate tests fail on main. Their shared symptoms are a KeyError: 'taken' reading the posted event, a route interceptor recursing through Route.fetch/Route.abort at teardown, a wait for a console message that never comes, and a first event that gets no server answer.
Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):
tests/browser/test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_tripAssertionError: the first event reached no server answer assert False + where False = wait(120) + where wait = <threading.Event at 0x7fe1c43b4290: unset>.waittests/browser/test_render_outbox.py::test_a_failed_background_presentation_keeps_the_new_undo_authorityplaywright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================tests/browser/test_render_outbox.py::test_an_accepted_event_is_not_retried_when_its_state_cannot_renderplaywright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================tests/browser/test_render_outbox.py::test_an_undo_reveals_the_prior_winner_before_its_send_finishes(1 of 2 cases fail locally)KeyError: 'taken'tests/browser/test_render_read_state.py::test_automatic_read_refusal_keeps_message_unreadKeyError: 'taken'tests/browser/test_render_outbox.py::test_refusal_does_not_overlay_an_accepted_attempt_already_in_the_logplaywright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================
Introducing change: #5307 (5423c81). Bisect over the bb35e35..52c7000 range ran test_a_reload_mid_flight_never_wedges_round_trip at each step; the group passes on 5423c8110^ and fails on 5423c8110.
CI evidence: first failing push run 41794709035, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.
test_a_presence_read_crossing_freshness_returns_to_the_current_lease first failed in the same run and also passes on 5423c8110^ and fails on 5423c8110, but it passes on current main, so it is left out of the list above.
No cause has been diagnosed past the bisect. Read #5307's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5307 replaced (update the test) or caught a regression (fix the code).
Cause of a failure tracked in #3985.
Activity
leaf-agent commentedon Nov 5, 2026
#5520 updates the tests and changes no product code. Each test still expected the answer shape #5307 replaced. A tab that names its held reading now receives a patch rather than the whole state, so five tests that read
readingortakenoff an event or state answer raisedKeyErrorinside their route handler. The handler then never fulfilled the request, which shows up as theKeyError: 'taken'and as the console waits that time out. These tests now fetch the whole answer through the harness'sfetch_whole_state. The reload test patchedPageEndpoint._json, which event answers no longer pass through, so it never saw the first event's answer. It now patches_json_body.Locally, with
--run-main, all six fail onbe273426dand pass on the branch. The PR's CI and review are still pending, and it lands through the usual review once its checks go green.