Select the Android run target before building the app #3158
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 231 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3158"
general
weight: 0.35
freakboy3742
This PR depends on #3114, and should be merged after it. Until #3114 is merged, the diff here includes #3114's commits; the change specific to this PR is the last commit.
In review of #3114, the new
RunCommand.prepare_target()hook was used so that iOS selects the target device before the (potentially slow) build. This PR makes Android use the same hook, for consistency.GradleRunCommand.prepare_target()now does everything that might prompt the user or fail on device selection before the build starts:selects the device or emulator (
-d,-d auto, or the interactive selection menu);if the user chose to create a new emulator, prompts for its name and creates it;
The selected device ID, name and AVD are stored on the command, and
run_app()uses them;run_app()no longer acceptsdevice_or_avd. Starting a non-running emulator stays inrun_app(), inside the existing--shutdown-on-exithandling, so a failed build doesn't leave a freshly started emulator running. Android builds don't depend on the target device, so (unlike iOS) noclone_options()is needed.Behavior is otherwise unchanged;
select_target_device()itself is untouched, so-d,auto, emulator creation from a JSON definition, unauthorized-device errors, and--no-inputhandling all behave as before - they just occur before the build.PR Checklist:
<!--- Go over all the following points, and put an
xin all the boxes that apply. --><!-- update or delete the next line to reflect your usage -->
Assisted-by: Claude Code (Claude Opus 5.5)