Repository navigation
SCA-328: do not create Agent VM on every launch warmup - #11759
Merged
Git-on-my-level merged 2 commits intoAug 17, 2026
Merged
Git-on-my-level merged 2 commits into
Git-on-my-level merged 2 commits into
Conversation
Signed-in home warmup now only adopts an existing ready, stopped, or provisioning VM. A missing box or a failed status check no longer falls through to provisionAgentVM. Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
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.
What changed and why
Signed-in macOS launch warmup (
ensureProvisioned) now only adopts an existing Agent VM (ready/stopped/provisioning). A missing VM or a failed status check logs and returns instead of falling through toprovisionAgentVM/runPipeline. Onboarding still callsstartPipeline()for explicit first create. There is no first-open Agent chat/tool path that assumed a VM already exists, so no extra create site was added.Closes SCA-328
Please merge with a regular merge commit (do not squash).
This is the low-hanging create-rate cut. Do not duplicate #11755 (idle-stop in the reconciler, already merged). Reaper LIVE / public IP / #7326 / provision architecture are out of scope.
Product invariants affected
none
How it was verified
Focused desktop Swift tests after a clean package build:
python3 scripts/check_desktop_test_quality.pystayed at the source-inspection baseline (54 files / 147 sites). Did not exercise a live GCE provision; the production create call is now unreachable from the warmup path.Tests
testWarmupAdoptsAReadyVMWithAnIP/testWarmupPollsProvisioningAndStoppedVMs— adopt-only happy pathtestWarmupDoesNotCreateWhenStatusIsMissing— missing VM on warmup does not createtestWarmupDoesNotCreateWhenStatusCheckFails— status error never provisionstestWarmupDoesNotCreateForUnrecognizedOrErrorStatustestStartPipelineStillCreatesWhileWarmupOnlyAdopts— create stays off the warmup decisiontestLaunchWarmupNeverCallsTheCreatePipeline— static contract:ensureExistingOrProvisionnever callsrunPipeline/provisionAgentVM; home warmup still callsensureProvisioned; onboarding still callsstartPipelineFailure class (fixes)
Failure-Class: none