Skip to content

Serve a held neighbour as the session holding it in four journeys - #7162

Merged
max-sixty merged 2 commits into
mainfrom
agent-a9c6a633db092725c
Nov 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-a9c6a633db092725c

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Four journeys fail on main since #7061, which refuses a server start that takes no claim on a page another live session holds (service.refuse_held). Each recorded a live claim on a neighbour page and then started its server for no session, so it raised StartRefused at setup. #7061's CI missed it because --changed-since adds a later-tier test only when the test's own function changes, and #7061 changed none of these four; #7157 edits lines inside them, so its run selected them and they failed.

Each test now starts, revives or restarts the server with the harness the claim names (harness.claim_harness), as the holding session's own Leaf does in use and as the live_leaf fixture already does. No assertion changed, and the refusal stays as it is. A scan of tests/journeys, tests/smoke, tests/browser and dev/tests for other tests that write a live claim and then start, restart or re-init the page for another session found no others; browser tests serve through TemporaryPageServer, which the refusal doesn't reach.

Tests: the four failed locally on main with the refusal and pass with this change.

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

Since #7061, a server start that takes no claim is refused on a page another
live session holds (`service.refuse_held`). Four journeys recorded a live claim
on a neighbour page and then started its server for no session, so each failed
at setup with StartRefused before reaching its subject:

- test_a_server_keeps_its_row_fresh_without_browser_visits
- test_private_revival_cannot_advertise_the_previous_serving_row[False, True]
- test_a_leaf_served_at_a_new_address_keeps_its_row_and_focus

Each now starts, revives or restarts the server with the harness the claim
names (`harness.claim_harness`), as the holding session's own Leaf does in
use, and as the `live_leaf` fixture already did. No assertion changed: each
test protects the same behaviour as before.
leaf-agent
leaf-agent previously approved these changes Nov 25, 2026
# Conflicts:
#	tests/journeys/test_render_controls.py
@max-sixty
max-sixty merged commit fbdd1fc into main Nov 26, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-a9c6a633db092725c branch November 26, 2026 02:36
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