Repository navigation
perf(renderer): defer Quick Command host work - #13517
Conversation
|
Warning Review limit reached
Next review available in: 11 seconds You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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 |
(cherry picked from commit abd160f)
Summary
This targets the renderer regression introduced with remote Quick Command host support in #13094. Reports were worst while remote hosts created workspaces or received orchestration work, and removing configured remote hosts made the slowdown nearly disappear. Inactive terminal panes remain mounted, so the previous eager hook multiplied host-resolution work by pane count during remote state churn and foreground catch-up.
Screenshots
No visual change. An uncached remote host can briefly use the existing loading state on first context-menu open.
Testing
pnpm lint— focused staged-file lint and changed-code checks passedpnpm typecheckpnpm test— focused renderer suites passedpnpm buildFocused validation:
pnpm check:code-quality:changed -- origin/mainpnpm check:react-doctor:changed -- origin/mainpnpm check:max-lines-ratchetpnpm check:zustand-selector-fanoutgit diff --checkAI Review Report
Reviewed React hook ordering, controlled context-menu and editor lifecycle, false-to-true subscription transitions, stable disabled snapshots, remote request coalescing, in-flight loads completing after close, and tab-bar behavior. The review found no correctness issues. The only expected tradeoff is that the first uncached remote menu open may briefly show the supported loading state instead of using eager prefetch.
Cross-platform compatibility was explicitly checked for macOS, Linux, and Windows, including shortcuts, labels, paths, shell behavior, and Electron-specific branches. This is platform-neutral renderer state selection and changes none of those surfaces. Local, remote-runtime, SSH, folder-workspace, and git-worktree behavior were reviewed; existing host resolution and remote loading behavior are unchanged while enabled.
Security Audit
No security findings. The change adds no input handling, command execution, path handling, authentication, secrets, dependencies, persistence, IPC/RPC schema, or remote-wire behavior. It only defers reads and an existing remote Quick Command load action until the existing menu is open.
Notes