You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicit emulator commands rediscover the owning backend even when its canonical device ID is already registered. Android discovery launches ADB/emulator inventory and queries every running AVD name before validating the target again.
Select the recorded backend from the existing session registry. Keep discovery for unknown IDs/names and after session removal, and preserve normal target validation. Production change:+2/-1; no new cache or wire fields. Workspace-derived renderer controls already use registered routing.
Validation:62 tests/four suites, exact parent one regression fails/27 controls pass, production focused TypeScript and all five normal precommit tasks. Real Node/Linux SDK-process fixture:10 devices/10 explicit taps141→21 launches, identical input argv; unknown/name/workspace/after-kill/offline controls preserved. Full matrix316→132 launches, all448 owned PIDs/profiles released. Exact committed62-module bundle rebuilt byte-identically. No actual device/ADB/ElectronUI/macOS/Windows/CPU/RSS/latency claim.
Required pnpm check:changed --maxWorkers=2 queued after #35607. Keep draft until it passes; rebase/revalidate current main and preserve adjacent emulator fixes before merge.
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 09c4f16a-30d0-4fdb-98e5-3aefc2eec5e7
Commits
Reviewing files that changed from the base of the PR and between 4eab2b6 and 5e7e8a2.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
🔍 Trigger review
Walkthrough
EmulatorBridge now selects the backend recorded for a registered device session. Without a registered session, it continues to check backend ownership. A test verifies that tapping a registered device skips simulator inventory lookup, and that tapping after kill clears the active session uses simulator inventory.
Priority: Low
Merge Risk: Minimal · previous review 4eab2
Registered devices reuse their recorded backend. No merge-blocking defect was established; complete the queued checks before merging.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description explains the implementation, rationale, testing, and known limitations, but it does not follow the required template. It omits the required section headings and information for ELI5, W…
Rewrite the description using all required template headings. Add a plain-language ELI5 summary, explicit before/after behavior and mechanism, rationale, an actual linked issue using the required Fixes reference, Visual Proof or N/A with a …
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly identifies the main change: reusing registered emulator backend routing. It is concise and specific.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.
Full details: Description check
Explanation
The description explains the implementation, rationale, testing, and known limitations, but it does not follow the required template. It omits the required section headings and information for ELI5, What Changed, Why, Linked Issue with a Fixes reference, Visual Proof or explicit N/A, AI Disclosure, Review, Notes, and Checklist.
Resolution
Rewrite the description using all required template headings. Add a plain-language ELI5 summary, explicit before/after behavior and mechanism, rationale, an actual linked issue using the required Fixes reference, Visual Proof or N/A with a reason, testing steps and platform coverage, AI Disclosure when applicable, review notes, Agent skill boundary, Notes, and completed Checklist items. Keep the existing test evidence and pending check status.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This test records device-1 as iOS because session() omits backend. It cannot detect a regression that routes a registered Android device to iOS. Add an Android registration and assert the selected backend without starting adb.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: c1181ed4-2fb2-46e0-8c14-5f184f18b337
Commits
Reviewing files that changed from the base of the PR and between 6037d91 and 4eab2b6.
Files selected for processing: 2
src/main/emulator/emulator-bridge.test.ts
src/main/emulator/emulator-bridge.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
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
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.
Explicit emulator commands rediscover the owning backend even when its canonical device ID is already registered. Android discovery launches ADB/emulator inventory and queries every running AVD name before validating the target again.
Select the recorded backend from the existing session registry. Keep discovery for unknown IDs/names and after session removal, and preserve normal target validation. Production change:+2/-1; no new cache or wire fields. Workspace-derived renderer controls already use registered routing.
Validation:62 tests/four suites, exact parent one regression fails/27 controls pass, production focused TypeScript and all five normal precommit tasks. Real Node/Linux SDK-process fixture:10 devices/10 explicit taps141→21 launches, identical input argv; unknown/name/workspace/after-kill/offline controls preserved. Full matrix316→132 launches, all448 owned PIDs/profiles released. Exact committed62-module bundle rebuilt byte-identically. No actual device/ADB/ElectronUI/macOS/Windows/CPU/RSS/latency claim.
Evidence:/home/neil/.local/state/orca-electron-audit/emulator-registered-backend-routing/report.md
Required pnpm check:changed --maxWorkers=2 queued after #35607. Keep draft until it passes; rebase/revalidate current main and preserve adjacent emulator fixes before merge.