Skip to content

Keep workspace tab height without restyling code controls - #3143

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39107676892
Oct 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39107676892

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The new first-paint height rule for a workspace page tab made unrelated chrome insertion restyle code-copy controls across a document. In the failing main run, test_code_copy_reads_sources_before_positioning_many_controls measured 680 style invalidations with 60 controls versus 225 with one. The result reproduces on main and disappears when the new opening-tab rule is removed.

The opening view now marks its sole content block during the existing prepaint pass. The height rule selects that marker instead of a structural child selector. This keeps the full-height page tab behavior introduced by #3141, including before the runtime upgrades, while the original performance assertion passes. A browser test holds the runtime script and checks that the opening block fills its tab from first paint.

Verification: the failing browser test and new first-paint test pass; the workspace and code-comparison cases pass; pnpm run check and pre-commit pass. A served code-comparison startup comparison has 54 requests on both arms before presentation, with 102 more bytes on this branch and the same recorded layout shifts.

Mark the opening view's sole content block during prepaint and use that marker for the first-paint height rule. Chrome otherwise recalculates style for every code-copy control when unrelated chrome changes. Preserve the single-block workspace layout and check it while the runtime is held.
@leaf-agent
leaf-agent merged commit ae5cfb2 into main Oct 18, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39107676892 branch October 18, 2026 09:41
max-sixty added a commit that referenced this pull request Oct 18, 2026
…aint

main's #3143 marked a workspace page tab's only block in prepaint so its
first-paint height rule needs no structural selector. This branch has no page
tabs, so the merge drops the marker, its rule and its test, and adds the views
form of that test: a workspace view fills the height the title leaves before
the runtime upgrades the set, and nothing moves when it does.

That test failed: the list, whose window height the grid relied on, is drawn
only at upgrade, so before it the workspace view collapsed to 8px. main again
states the window's height as its own minimum.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

1 participant