Repository navigation
Conversation
A TSX app root that declares `<Window>` scenes keeps the implicit first window's node, unopened, as their home. It is a `modal` node with a dialog's default `slide` animation, so the macOS host presented it with a slide of about 300 ms at launch, though it never shows, and the test agent waited for it. The home now appears at once (`animation: "none"`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
✅ LGTM: minimal perf/bug fix, no public API change; the home node no longer plays the ~300 ms launch slide (macOS startup 690–703 ms → 412–440 ms). Reviewed head 2c18458 (diff read). No issues: the mount error path in |
This branch has not been deployed
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.
Summary
A TSX app root that declares
<Window>scenes keeps the implicit first window's node as the home of those windows. The node stays in the app root and never opens. It is amodalnode, and a dialog's defaultanimationisslide, so at launch the macOS host presented it over the main window with a slide of about 300 ms. That main window never shows, yet itsonShowarrived only after the slide. The test agent waits for the platform's animations to end, so it counted the slide as part of the launch.The window the app declares already showed with its first frame, 22 ms after it opened (traced with host logs). Only the slide of the hidden home was delaying the launch.
forget_implicitnow gives the homeanimation: "none". An error from setting the prop is returned tomount, the same way the other failures in that path are.Performance
examples/bench/jank/jank.py --runs 3on macOS arm64, release. Two alternating sets each of this change's binaries and of the same tree without the change. The first run of a set is a cold start.Trace timeline after the change:
Showon the home comes in the same millisecond as the declared window's firstWindowevents (207 ms), not about 300 ms later.nsh test --trace:animation) and the same 431 mount items.examples/counteris unchanged: 56 ops, 50 mount items.Public API
None. The home node is internal. A root that returns views still opens the implicit main window with its default animation.
Testing
window::tests::the_home_of_declared_windows_appears_at_once. It fails without the change.cargo xtask compat: compatible with every recorded release.cargo clippy --workspace --all-targets: clean.cargo test --workspace: the only failures also fail onmain:a_built_record_survives_a_moved_home_and_a_new_timeanddraw_on_show.dev_portand the TUI'sescape_then_tabfailed once each and passed on rerun.🤖 Generated with Claude Code