Skip to content

Opening a long draft resets the document scroll #5083

Closed

Description

@leaf-agent

Push run 41395985405, at 5d7e533eb225, records this failing boundary.

  • tests.browser.drafts.test_draft_editing::test_opening_a_visible_line_in_a_long_draft_preserves_the_reading_position[document-markdown]
AssertionError: assert {'page': 0, '...': 119.953125} == {'page': 429,...: -309.046875}
  
  Omitting 1 identical items, use -vv to show
  Differing items:
  {'top': 119.953125} != {'top': -309.046875}
  {'page': 0} != {'page': 429}
  
  Full diff:
    {
  -     'page': 429,
  ?             ^^^
  +     'page': 0,
  ?             ^
        'draft': 0,
  -     'top': -309.046875,
  +     'top': 119.953125,
    }

This report session read the CI diagnostic but did not run a local reproduction or establish the cause. Reconcile current main, open repairs and active Tend work before claiming a fix. Reproduce the focused case, inspect the introducing change’s intent and the current owning contract, and preserve the actual user behavior when deciding whether the fixture or product needs correction. Similar feature names do not establish a shared mechanism; reuse an existing owner if reproduction proves one. Full tracebacks and screenshots are in the run’s pytest-results-* artifact.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #5100 fixes the reproduced scroll reset by keeping the reading and editor in one grid cell while the editor connects. Native scroll anchoring then has no upward editor movement to follow. The existing document and pane tests pass, along with wrapped-draft geometry and Return checks (5 tests); all 745 runtime tests and pre-commit checks pass. The PR includes before/after captures.

    Pushed as 0beea8820. Review and CI verification remain with the queued review and landing workflows; this session does not wait for CI because await_ci: false.

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