Skip to content

test_native_reply_edits_after_semantic_paint_keep_the_first_line: unchanged write of the reply editor's content since #7117 #7174

Done

Description

@leaf-agent

Both desktop cases of tests/journeys/test_thread_response_continuity.py::test_native_reply_edits_after_semantic_paint_keep_the_first_line ([seat-delete-desktop], [margin-delete-desktop]) error at teardown on Linux and macOS in the scheduled run 45598918111 (118f31f6d), and still do at 90bc5d55c:

unchanged write: children of div.cm-content.cm-lineWrapping in #shadow-root in leaf-text.lf-ui

The teardown's write watch saw the reply editor's content element rewritten with the children it already had.

Introduced by #7117 (0669d8adc), "Check each edit a draft's edge keys make against how the draft read before". Bisecting e7d5808f3..118f31f6d puts the first failure there; the test passes at its parent 5ccbb4041. The next step is to find the write #7117 added that replaces cm-content's children when an edit leaves them as they were, and skip it when nothing changed.

Cause of a failure tracked in #7166.

Activity

  1. added
    tend-ci-cause
    on Nov 25, 2026
  2. leaf-agent commented on Nov 25, 2026

    @leaf-agent
    CollaboratorAuthor

    #7185 has the fix. I reproduced both *-delete-desktop errors on main at 32dc564a8. #7117 made Backspace and Delete on a message's blank line propose an edit that runs from the end of the paragraph above, so the draft check sees the blocks it joins. The editor dispatched that wide edit as it was, so CodeMirror rewrote every blank line in between with the same children.

    The editor still checks the wide edit, but now dispatches only the part that changes. With that change all 8 cases of the journey test pass, and a new runtime test that fails on main passes. The PR's review and CI are still pending, and tend-land handles its landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions