Skip to content

fix: let a key act at the m walk's stop while On me's ringed card shows it - #5676

Merged
max-sixty merged 2 commits into
mainfrom
fix/issue-5654
Nov 7, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/issue-5654

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

With On me open, m from the last item it lists walked back to the one before it instead of coming round to the first. The test test_the_m_walk_brings_its_card_into_on_me_s_view_and_rings_it failed this way on every ci push run on main since 6b3159dd6. Two rules collide. On me stays open over a stop it lists, because its ringed card shows that item (clearFor). The keyboard controller lets go of focus the user can't see before acting on a key (focusPlace, #5468). A stop at the page's foot can't be scrolled clear of the open view. So at 1000×560, #ask-8 (y 251–392) stood wholly under the panel (y 134–546, x 230–770) with the page scrolled to its end. The next m found focus on <body> and stepped from the reading block, an h2 inside #ask-7, which landed on 7 of 8.

The walked card is now the box the focused stop stands at (standsAt), so focus on the stop counts as where the user is while that card is in view. boxStoodAt now takes the first matching rule that names a box, so the panel's catch-all rule doesn't affect the thread and shelf rules. Behavior changed: with On me open, a key pressed on the stop m reached acts there while its ringed card is in view, even where the panel covers the stop.

Verification: the test failed deterministically on this runner before the change (m went 8 → 7 → 8 → 7) and passes after it. 58 focused tests also pass: -k "walk or scroll or away or on_me or let" over test_on_panel.py, test_obligation_walk.py, test_key_scopes.py and test_current_location.py. pnpm run test:runtime passes (896), as do check:browser and pre-commit on the two files.

The commit that tipped the geometry into overlap inside 53337b5e9..6b3159dd6 isn't established. The conflict between the two rules exists whatever the panel's exact size.

Closes #5654 — automated triage

…ws it

On me stays open over a stop it lists, so its card shows the item the
walk reached (floating-panel.js, `clearFor`). A stop at the page's foot
can't be scrolled clear of the open view, so it stood wholly under the
panel, and the keyboard controller let go of focus the user can't see
(`focusPlace`) before the next press. `m` from the last item then walked
from the reading block above it, reaching 7 of 8 instead of coming round
to 1.

The walked card is now the box the focused stop stands at (`standsAt`),
so focus there is where the user is while that card is in view.
`boxStoodAt` takes the first matching rule that names a box, so the
panel's catch-all rule yields to the thread and shelf rules.

Behavior changed: with On me open, a key pressed on the stop `m` reached
acts there while its ringed card is in view, even where the panel covers
the stop itself.

Closes #5654

@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.

One regression outside the stated behavior change, inline. I'll push the fix to this branch.

Comment thread browser/runtime/floating-panel.js Resolved
placeOf (user-place.js) reads the same standsAt rule as focusPlace, so a
reading applied with On me open after an m walk held the panel card
rather than the stop. A stop in sight is now its own place again, which a
reading keeps still; the covered stop still stands at its card.

Co-Authored-By: Claude <[email protected]>
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.

test_the_m_walk_brings_its_card_into_on_me_s_view_and_rings_it times out on every main push run since 6b3159dd6

2 participants