Skip to lesson
Exit
Hand work between local and cloud1 / 1

2 min lesson

Pushed commit, cloud starting ref, separate branch, local review

Push one payment refactor, run its long suite in cloud and inspect the returned branch locally.

Check your understanding

Hand the payment suite to cloud, then inspect the returned branch locally.

Outcome: The cloud run started from 81f4c2a, its separate branch contains only the expected fix and the fetched result passes local review and checks.

Hand the payment suite to cloud, then inspect the returned branch locally
Pushed commit, cloud starting ref, separate branch, local review
SayThe payments refactor is committed as 81f4c2a on payments/refactor-tax and pushed. Typecheck passes. The 40-minute integration suite remains.
DoOpen a new Agent in the Agents WindowCursor's surface listing your agent runs; open a run to read its diff and search transcripts from the command palette. Press Enter for the full definition., choose Cloud and select the pushed payments/refactor-tax branch.
SeeThe run details name the payments repository and the intended starting branch. The commit is reachable from the repository provider.
TypeStart from commit 81f4c2a. Run the payment integration suite. Do not change tests. If product code needs a fix, keep it inside packages/payments and open a draft PR with the failing and passing output.
DoSubmit the bounded task and check the run's starting ref before leaving it unattended.
SeeThe Cloud Agent clones the repository into its VM and works on a separate cursor/... branch based on the selected starting ref.
DoWhen the run finishes, read the suite output and artifacts. Open the draft pull request and inspect its base, head branch and changed files.
SeeThe suite is green, the draft pull request targets the expected base and its branch contains one payment-code fix without a test edit.
DoFetch and check out the returned branch locally. Read its commits and diff, then run the typecheck and targeted payment test.
SeeThe cloud run started from 81f4c2a, its separate branch contains only the expected fix and the fetched result passes local review and checks.
Learn more

Optional practice

Optional practice

QWhat should be true when you finish the Local-to-cloud handoff practice?

Finish the check to continue.