Repository navigation
fix: keep body focus from replacing the reading pane - #4593
Merged
Merged
Conversation
The landing lookup added in #4332 treated body as a selected passage after a focused panel closed. Scanning its descendants found the workspace heading before the remembered pane. Body means no selected passage, so use the existing page-region fallback instead. This preserves landing beside a real selected destination and the reading and scroll behavior covered by the navigation journey. Closes #4458
This was referenced Oct 28, 2026
# Conflicts: # dist/kernel/kernel.json
This was referenced Oct 29, 2026
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.
Closing Threads can leave focus on
document.body. The landing lookup introduced in #4332 treated that as a selected passage and scanned the entire document, choosing the workspace heading ahead of the pane the user was reading. Body now takes the existing reading-region fallback, so Escape keeps the pane andd/ucontinue scrolling it. Landing beside a real selected destination remains intact.The reported journey fails before the correction and passes afterward; the related thread-exit and obligation-walk checks also pass. The journey now explicitly checks the region before opening Threads. All 695 runtime tests and
pnpm run checkpass. The kernel is rebuilt. Local Ruff and Prettier executables are unavailable; PR CI owns those checks.A served
release-notescomparison against the starting main retains 42 code requests through widget upgrade and server-state presentation, adds 26 JavaScript bytes, and reports no startup layout shifts or console errors. The guard adds no startup task or dependency.Closes #4458 — automated triage