Skip to content

Check page comment continuity across live revisions - #2236

Merged
leaf-agent merged 4 commits into
mainfrom
fix/ci-38013241865-live-hold
Oct 10, 2026
Merged

leaf-agent merged 4 commits into
mainfrom
fix/ci-38013241865-live-hold

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

#2179 lets unrelated authored revisions arrive while retained editors hold unsent words. Two browser journeys still expected those revisions to wait: one for a page comment editor in runtime chrome, another for an empty draft editor whose authored node is retained. They now check immediate adoption while each editor keeps its value and focus. The comment journey still checks the live URL and retired attributes; the draft journey still reloads and saves the empty value as an absolute edit.

Both original cases failed on main before this change. Their revised cases passed: uv run pytest tests/test_render_drafts.py::test_an_empty_draft_survives_reload_and_a_live_revision tests/test_render_projection.py::test_the_live_page_retains_a_page_comment_while_adopting_revisions -q -n0.

This addresses two failures in main CI run 38013241865.

@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 current lint check fails because tests/test_render_drafts.py still imports expect_banner_control_offered after this change removed its last use. Remove that unused import so pre-commit can pass.

The page comment editor is runtime chrome, so an authored patch no longer waits for it. Check immediate adoption through two revisions while its draft and focus survive.
The retained draft editor follows an unrelated authored change immediately after #2179. Verify its empty value and focus through that revision, then reload and save it as an absolute edit.
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

The lint repair is pushed, but the full test job failed twice on the same unchanged compact package-reader test: its margin marker moved 10 px after Playwright scrolled an offscreen option into view. #2246 reproduces that failure on main and changes the test to scroll with a user wheel gesture. This PR remains open for a green check after that fix lands.

max-sixty pushed a commit that referenced this pull request Oct 10, 2026
## Cause

In the 390 px package reader, the Email option starts below its
scrollport. Playwright scrolls it into view before `click()`, but that
synthetic scroll has no trusted input event. The layout shift watcher
therefore flags the margin marker following the reader by 10 px as
unsolicited motion. This reproduces on current `main` and is the sole
Python test error in #2231, #2236, #2241, and #2243.

## Change

Scroll the compact reader with a user wheel gesture before clicking
Email. The case still exercises the native Ask, package presentation,
retained draft, and new conversation.

## Verification

- Before: `uv run pytest
'tests/test_render_application_boundary.py::test_primary_package_reader_retains_native_widgets_drafts_and_creation[390]'
-q -n0 --tb=short` failed at teardown with `lf-margin-marker ... moved
without input by (0, -10)px`.
- After: the same command passes.
- `uv run pytest tests/test_render_application_boundary.py -q -n0
--tb=short`: 46 passed.

Co-authored-by: leaf-agent <[email protected]>
@leaf-agent
leaf-agent merged commit b8f07b7 into main Oct 10, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38013241865-live-hold branch October 10, 2026 15:50
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