perf(web-ui): shorten startup handoff and harden pet sync - #1346
Merged
limityan merged 1 commit intoJun 29, 2026
Merged
Conversation
limityan
force-pushed
the
yanzhn/perf-startup-resource-observability
branch
from
June 29, 2026 11:48
1a5a1fd to
8ff76d4
Compare
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
900ms -> 650ms, exit animation0.32s -> 0.24s, fallback450ms -> 350ms.startup_overlay_hide_starttrace point so startup reports can separate "ready to hide" from "overlay removed".--samples/--iterations) and isolate long-session interaction matrix data under per-run E2E roots.disabled/inputsettings hide an incorrectly-created pet window.Performance Data
Release-fast Windows run against latest
mainbaseline99fd8448, 10 samples each. The claimed product-facing improvement is startup to main UI visible (startup_overlay_hidden). Agent companion changes are correctness hardening and are not counted as a separate performance optimization.startup_overlay_hidden, median)nonCriticalInitDoneMs, median)interactiveShellReadyMs, median guard)shownToInteractive, median guard)Long-session guard on the final build (
release-fast, core matrix): first open 170.6 ms, rapid switch 242.6 ms, first scroll 150.8 ms, resize-width 158.3 ms, all withblankEvents=0.Risk / Scope
workspaceLoading=falseandAppLayoutready, keeps a 650ms minimum hold, and exits via a 240ms animation.Validation
pnpm run desktop:build:release-fastpnpm run type-check:webpnpm run lint:webpnpm --dir src/web-ui run test:run src/infrastructure/config/services/AgentCompanionWindowService.test.ts src/infrastructure/config/services/AIExperienceConfigService.test.ts src/app/startup/startupPerformanceContract.test.ts src/app/startup/startupOverlay.test.ts src/app/startup/startupPreload.test.ts src/flow_chat/services/AgentCompanionActivityBridge.test.ts src/flow_chat/utils/agentCompanionActivity.test.tsnode tests/e2e/scripts/perf-coverage-contract.test.mjspnpm run e2e:test:perf:startup-stability:release-fast -- --samples 10pnpm run e2e:test:perf:long-session-interactions:release-fast -- --profile coregit diff --check