Skip to content

Keep temporary widget decisions from permanently detaching threads - #2550

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38204537786-anchor-revision
Oct 12, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-38204537786-anchor-revision

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run found that test_a_settled_third_party_holder_wears_the_layers_mark could restore a retired passage but its thread quote stayed detached. Reading the unchanged page after the first widget decision appended a permanent reanchor with a null anchor. The later decision restored the passage, but could not undo that recorded relocation.

revision_reanchors now records relocation only when authored source becomes a new revision. A widget decision within the current revision may hide or restore the passage; the browser resolves the thread against that current state without making the temporary detachment durable. This preserves the intended revision behavior introduced in #2484.

The focused browser test failed before this change and passes afterward. The existing file-side test for a passage removed by a real revision also passes (uv run pytest tests/test_render_projection.py::test_a_settled_third_party_holder_wears_the_layers_mark tests/test_interact_anchors.py::test_a_quote_without_a_section_detaches_when_its_words_disappear -q -n0).

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test check fails at ruff format on the new assertion in tests/test_render_projection.py. The Python tests passed. I’m formatting that assertion and will push the correction.

Comment thread tests/test_render_projection.py Resolved
@leaf-agent
leaf-agent force-pushed the fix/ci-38204537786-anchor-revision branch from 911adce to 72f9eae Compare October 12, 2026 08:46
@leaf-agent
leaf-agent merged commit abe5de9 into main Oct 12, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38204537786-anchor-revision branch October 12, 2026 09:13
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