Skip to content

Hold generated hints until the armed scene settles - #1207

Merged
max-sixty merged 2 commits into
mainfrom
fix/ci-36223905985
Sep 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/ci-36223905985

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The nightly run found that Go-to hints could appear while native PageDown was still settling. Arming set the hint session's stood state to false, but paint withheld generated hints only after a scroll event had arrived. This change waits for the scene to settle before drawing those hints, then requests a repaint when the settle timer finishes, including on a page already at rest.

The browser test now holds the browser clock at the first rendering frame, checks the armed but unhinted map, resumes time, and checks the settled map after PageDown moved the document. This reproduced the premature hints before the runtime fix. The focused navigation and target-hint selection passed (4 tests), as did the runtime fold suite (125 tests) and pre-commit hooks. The run's other failing assertion, in the option-addition test, was already corrected by #1206.

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

The new settle window leaves two navigation tests reading generated hints before they are drawn. test_target_mnemonics_filter_the_generated_map_without_renumbering_hints gets an empty set after rearming, and test_generated_hints_branch_after_the_single_letter_alphabet gets zero codes after pressing g (uv run pytest tests/test_render_navigation.py -q -n0 -k hint --tb=short: 2 failed, 13 passed). Both need to wait for the settled hint map before reading it. I’ll update these assertions on this branch.

@max-sixty
max-sixty merged commit 4e95929 into main Sep 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-36223905985 branch September 26, 2026 10:12
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.

2 participants