Skip to content

With On me open, m lets go of a stop the open view covers and never reaches the rest of a short page #5586

Closed

Description

@leaf-agent

@max-sixty, with On me open, m can land on a stop the open view covers, and since #5468 the next m lets go of that stop and steps from what the user reads instead. On a page too short to scroll the stop clear of the view, the walk goes around a subset of the list and never reaches the rest.

Seen on GROUPED_PAGE in tests/browser/widgets/test_on_panel.py at 1440×900, grouped By kind (Options: Which exit code?, Include self-hosted runners?; Reply: the fork question in a thread on #reap). On main at d133d573a, successive m presses go exit → runners → exit → runners and never reach the Reply card. At the second stop:

  • the On me view covers x 450–990, y 381–802; the runners ask stands at y 506–643, and the document's scroll height equals the window (900), so the landing's scroll-padding-bottom (floating-panel.js, followBox) has nothing to scroll;
  • focusPlace() returns null there (seenRect cuts everything from the view's top to the window's foot across its columns), so keyboard/controller.js lets go, walkOrigin() reads the reading position, and stepFrom finds no item after the runners ask's page place in the By kind order, so it wraps to the first.

Before #5468, m went on from the focused stop whether or not the user could see it, so the walk reached all three. #5534's two tests caught this; their repair gives the window room so each stop lands above the view, and the tests pass again. It leaves this behavior as it is.

The open question is what Leaf owes here, since it's a product choice:

  • give the body's end room for the open view, as it already has for the collapsed row (--lf-foot-room), so a landing can always scroll a stop clear of it. This changes the page's layout while a view is open;
  • or count a stop the walk itself just arrived at as where the user is while its On me card wears the walk's ring. That reverses part of Let a key go of focus the user can't see, and read where they are by one rule #5468's rule, that focus counts only while the user sees it, with no record of how focus got there;
  • or accept it: on a short page with the view open, the outlined card in the list shows where the user is, and Show reaches the rest.

By the same mechanism this should also hit the last stops of a longer page, wherever they stand within the view's reach of the page's end; I reproduced only the short page.

Activity

  1. added
    waits-on-user
    on Nov 6, 2026
  2. self-assigned this
    on Nov 11, 2026
  3. removed
    waits-on-user
    on Nov 11, 2026
  4. removed their assignment
    on Nov 18, 2026
  5. max-sixty commented on Nov 18, 2026

    @max-sixty
    Owner

    #5676 settled this, so closing. A stop the walk reached counts as seen while its ringed On Me card shows, so focusPlace keeps it, and m goes on to reach every item.

    This was written by Claude Code on behalf of max-sixty

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions