Skip to content

Accepted margin reply leaves its native editor visible #5147

Closed

Description

@leaf-agent

The accepted margin reply reaches its final session assertion but its leaf-text remains visible with destination words. Establish the intended post-admission session lifecycle; this differs from the earlier metadata-size failure in #4341.

Evidence: push run 41576718956.

  • tests/browser/drafts/test_reply_sessions.py::test_reply_admission_finishes_or_restores_its_native_session[margin-accepted]

AssertionError: Locator expected to be hidden

>       expect(field).to_be_hidden()
E       AssertionError: Locator expected to be hidden
E       Actual value: visible
E       Call log:
E         - Expect "to_be_hidden" locator(".lf-margin-preview .lf-page-thread[data-thread=\"e7f7ed84\"]").locator("leaf-text") with timeout 120000ms
E         - waiting for locator(".lf-margin-preview .lf-page-thread[data-thread=\"e7f7ed84\"]").locator("leaf-text")
E           243 × locator resolved to <leaf-text name="reply" tabindex="0" role="textbox" data-lf-gen="1" data-lf-offer="" data-lf-focus="" aria-label="Reply" class="lf-ui scroll" aria-multiline="true" data-lf-focus-within="" data-says="destination" data-lf-focus-visible="" data-lf-focus-visible-within="" placeholder="Reply ⏎ · New line Shift+⏎" aria-keyshortcuts="Enter Meta+Enter Control+Enter">…</leaf-text>
E               - unexpected value "visible"

This report triage has not run a local reproduction or established the cause. Reconcile current main, existing repairs and active workers, reproduce the focused boundary, then repair the owner of the rule. Split independent mechanisms if the grouped observations require different fixes. The complete failed log and pytest-results artifact on each run retain the traceback and screenshots.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fix is up in #5364, waiting on CI and review.

    The failure started with #5039, found by bisecting the ten commits between the last passing ci run on main (5d7e533) and the first failing one (5daa302). #5039 leaves the caret in the reply box after Send. The accepted send ends the reply's editing session. When the agent then resolved the thread, the focus carry in holdThreadPlace put the user back in the resolved thread's reply box, and that focus started a new editing session. That session kept the resolved card and its editor in the margin.

    #5364 makes two changes:

    • A focused reply box is carried into a resolved thread only while a reply is being written there.
    • Typing in a reply box with no session now starts one, so a reply typed into the box Send left survives an agent's Resolve.

    The margin-accepted case fails on main and passes with the fix. A new test covers the typed-reply case, which fails with the carry change alone.

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