Repository navigation
fix: let a key act at the m walk's stop while On me's ringed card shows it - #5676
Merged
Merged
Conversation
…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
commented
Nov 7, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
One regression outside the stated behavior change, inline. I'll push the fix to this branch.
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With On me open,
mfrom the last item it lists walked back to the one before it instead of coming round to the first. The testtest_the_m_walk_brings_its_card_into_on_me_s_view_and_rings_itfailed this way on everycipush run on main since6b3159dd6. 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 nextmfound focus on<body>and stepped from the reading block, anh2inside#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.boxStoodAtnow 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 stopmreached 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 (
mwent 8 → 7 → 8 → 7) and passes after it. 58 focused tests also pass:-k "walk or scroll or away or on_me or let"overtest_on_panel.py,test_obligation_walk.py,test_key_scopes.pyandtest_current_location.py.pnpm run test:runtimepasses (896), as docheck:browserand pre-commit on the two files.The commit that tipped the geometry into overlap inside
53337b5e9..6b3159dd6isn't established. The conflict between the two rules exists whatever the panel's exact size.Closes #5654 — automated triage