Skip to content

fix: restore Forward focus through a closing thread card - #4135

Merged
leaf-agent merged 3 commits into
mainfrom
fix/issue-4120
Oct 25, 2026
Merged

leaf-agent merged 3 commits into
mainfrom
fix/issue-4120

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Forward could restore the second discussion's viewport while leaving focus on the paragraph returned to by Back. #4001 made a closed margin card remain painted but inert during its fade; history treated that painted card as a usable focus destination and never tried its source passage.

History now uses the shared presentation check for both saved focus and its source fallback. A closing card therefore returns through its passage without changing the closing animation. The existing regression holds the native closing transition through Forward and checks focus after traversal completes; both click and Tab cases fail with the old runtime and pass with this change.

Validation: all six focused history checks and 562 runtime tests passed. Browser bundles rebuilt successfully. A served comparison on root-parts loaded 44 code requests before both upgrade and first state presentation on each version, with 153 additional code bytes; the new presentation checks run only on history return.

Closes #4120 — automated triage

A closing card remains painted but inert. Use the shared presentation reading before restoring saved focus, so history falls back to its page target. Hold the closing transition in the regression and assert focus after traversal completes.

Closes #4120

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

No code findings. CI’s test check fails because the browser build reports stale dist/kernel/kernel.json. I’m checking and regenerating the committed output before handing the new head to its queued review.

@leaf-agent
leaf-agent merged commit 4789149 into main Oct 25, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4120 branch October 25, 2026 21:09
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.

Forward navigation does not restore focus to the second discussion

1 participant