Skip to content

Preserve interrupted arrivals and avoid offscreen layout work - #3374

Merged
max-sixty merged 2 commits into
mainfrom
codex/browser-arrival-layout-repairs
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/browser-arrival-layout-repairs

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Interrupted native smooth travel could carry a resumed draft or a reversed thread jump offscreen after focus had already returned. Cancel outgoing placement at the common arrival boundary, wait for its final compositor update, then resolve and place the destination again. History shares that cancellation primitive, and hidden reading regions are excluded. Track motion before its first frame so idle arrivals remain immediate, and route passage-click thread opening through the same arrival owner.

Separate the focused or selected place from the viewport fallback used to start navigation. This removes page-wide reading scans from drawing-release control updates, including when a user to-do exists. Preserve approval and unanchored-thread queue positions even when those controls have no page target. Alignment resolves its destination when invoked.

Skip header geometry for code controls inside hidden content during resize. Previously shown sections now remain skipped until revealed, and their Copy controls still return correctly.

Closes #3118. Ref #2775, #2793, and #2262. The pre-capture scans and a current hidden-content layout defect are repaired; atomic screenshot reconstruction cost and the original historical margin-layout excess remain open.

Validation: 25 focused browser cases passed, covering held arrival/Back orderings, first-frame idle arrivals after a layout clamp, passage-click and datum takeovers, approval and unanchored-thread queue positions, drawing with a user to-do, and hidden-source Copy. pnpm run check and changed-file pre-commit checks passed. Regression controls reproduced the broken arrival, stale motion, idle delay, queue position, and layout work before their repairs. Generated kernel rebuilt. Opus reviewed the complete change and follow-up repairs; its final verdict is ready to land with no actionable defects.

Thanks to @leaf-agent for reporting #3118.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 9c6f52b into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/browser-arrival-layout-repairs branch October 20, 2026 21:43
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.

ci-fix: Resume writing intermittently leaves its paragraph outside viewport

2 participants