perf(renderer): unmount closed setup guide content - #13546
Open
nwparker wants to merge 1 commit into
Open
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
This follows the mount-gating pattern from #13525. The intentional always-on setup telemetry observer remains; this removes the second progress graph retained by the closed modal.
ELI5
The Getting Started guide is like a checklist teacher. After you opened it once, Orca kept a second copy of that teacher listening to project, remote-host, skill, and integration updates even after the guide disappeared.
Now the closed guide keeps only a tiny doorbell that knows whether it should open. The teacher stays for the brief closing animation, then goes home until the next open.
Visual explainer
flowchart LR U[Project or remote-host update] O[Intentional telemetry observer] M[Retained closed modal] P[20 direct progress selectors plus runtime hooks] N[Render nothing] V[One visibility selector] X[Content unmounted after 300 ms] subgraph Before U --> O U --> M --> P --> N end subgraph After U --> O U --> V --> X endImprovement proof
useSetupGuideProgressalone owns 20 direct Zustand selectors; the retained modal also owned modal/runtime subscriptions.Testing checklist
SetupGuideModal.mount-gating.test.tsx: 2/2 passedpnpm run typecheck: passedgit diff --check: passedFull-suite check: 49,130 tests passed. Five unrelated files failed in the heavily parallel run. A serial rerun cleared the native-chat watcher and worktree-directory poller failures. Three environment/load failures remained:
.staging-v799-*/srcThe changed setup-guide test was rerun after the full suite and remained green.
No-regression review
open=falserender, so it recordsdismissed, notinterrupted.Screenshots
Not applicable: this changes hidden component lifetime only; visible layout and styling are unchanged. The lifecycle diagram above is the visual proof.
AI review report
Security audit
No authentication, authorization, persistence, network sink, shell execution, dependency, or user-data surface changed.
Notes