Skip to content

Fix Draw release scaling, draft return, and re-vendored deliveries - #3080

Merged
max-sixty merged 3 commits into
mainfrom
codex/leaf-issue-triage
Oct 16, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/leaf-issue-triage

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Draw-mode release on a long page repeatedly restyled every document Copy control when transient chrome appeared. Keep the controls and their clipping frames in one stable home so those insertions do bounded native style work. In a matched 800-card probe, complete release fell from 1,361 ms to 476 ms and the longest task from 533 ms to 150 ms, with the same number of computed-style queries. Capture still walks offscreen DOM, so #2775 remains open for that residual work.

Returning to an earlier comment draft now lets the ordinary final arrival place its editor and passage together, removing a competing preparatory instant scroll. Re-vendoring activates valid source with its refreshed layer before returning, so an immediate wait delivers current CLI instructions while preserving custom handling, invalid-source refusal and immutable history. The margin-work measurements now wait for completed work at both boundaries, keeping mutation and geometry checks active through deferred paints without changing their budgets; the historical 69-layout failure remains unexplained.

Closes #2523. Part of #2415, #2775 and #2793.

Validation: focused browser regressions and sibling routes; 57 focused initialization, delivery, locking and historical-revision cases; independent code and live interaction review; pre-commit; browser rebuild; pnpm checks. The native invalidation regression compares 60 Copy controls with one and uses affected-element counts rather than a time limit. The draft-return race reproduction remains probabilistic.

Thanks to @leaf-agent for the reports and reproductions.

This was written by Codex on behalf of max-sixty

Group document Copy controls with their header clipping frames so transient chrome does not invalidate a page-wide sibling family. Let one final arrival place a resumed editor and its passage. Activate valid refreshed artifacts before re-vendor returns, preserving invalid-source and historical-revision behavior. The historical server test now expects a current revision without an extra markup edit; margin-work metrics include settled work at both boundaries.
leaf-agent
leaf-agent previously approved these changes Oct 16, 2026
Keep the corpus mutation observer and geometry checks active through deferred paints, with the existing work budget unchanged. The renamed-vocabulary server test now inspects the valid revision that re-vendoring activates instead of creating an unrelated third revision.
leaf-agent
leaf-agent previously approved these changes Oct 16, 2026
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit b9af1ab into main Oct 16, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/leaf-issue-triage branch October 16, 2026 06:59
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: returning to an earlier comment draft sometimes leaves its passage offscreen

2 participants