Repository navigation
[leas code] Reuse renderer control paths - #13425
Conversation
|
Warning Review limit reached
Next review available in: 10 minutes 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 (2)
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 |
Summary
Remove two exact renderer control-flow duplicates:
The two changes remove 35 net lines while keeping their public behavior and ownership boundaries unchanged.
Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused verification:
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/browser-pane/useGrabMode.test.ts src/renderer/src/lib/setup-script-prompt.test.ts src/renderer/src/components/setup-guide/use-setup-guide-progress.test.ts(3 files, 35 tests)pnpm run typecheck:webpnpm run check:code-quality:changedpnpm run check:react-doctor:changedgit diff --checkAI Review Report
The review compared both duplicated branches statement by statement. For setup inspection it checked local-only, shared-only, run-both, empty command, error, forbidden runtime, and SSH inspection behavior through the retained predicate. For browser grab mode it checked the target tab, arm generation, disable IPC, conditional cancel IPC, stale operation cleanup, state reset, second-toggle cancellation, direct cancellation, and page-switch tests. The change was reviewed for macOS, Linux, and Windows and alters no shortcuts, labels, paths, shell commands, Electron platform checks, folder-workspace assumptions, Git behavior, or wire formats.
Security Audit
No authentication, secrets, dependencies, command execution, path handling, or input validation changed. Existing browser IPC calls occur in the same order with the same payloads, and setup-hook inspection still uses the same command-source policy.
Notes
Independent cleanup PR. The initial focused test retry required deleting this worktree’s gitignored generated
out/directory after the host disk filled; the directory is rebuildable and unrelated to the patch.