DEV Community

Cover image for How to resume the same coding session on a MacBook and a Mac mini
AIHubMix
AIHubMix

Posted on Edited on

How to resume the same coding session on a MacBook and a Mac mini

A developer signed in to Orca on a Mac mini with the account they used on a MacBook. The mini showed neither the MacBook's sessions nor its bots. Each Mac was running its own local Orca instance. That's a report about what appeared on the second Mac, not evidence that anything was deleted on the first.

For a handoff, compare two ways to reach one running session from those same Macs: pair them in Orca, or run the task on an AIHubMix Cloud Plus host. These are setup instructions, not results from a side-by-side test.

Orca: start on the mini, even when you're at the MacBook

  1. Set up the mini as a Remote Orca Server (beta). Keep it awake and reachable, and pair the MacBook with it over a private network you control.
  2. From the MacBook, start the agent session on the mini. Pairing doesn't move a session you already started on the MacBook.
  3. When you switch desks, continue that session at the mini. The terminal, agent and working files are there; you can shut down the MacBook.

Already started on the MacBook? In its running Orca app, enable Advertise this app as a server and pair the mini as the client. Keep the MacBook awake and connected. The mini can now reach the original session; it hasn't received a copy.

AIHubMix Cloud: start on the Plus host

From the MacBook, put the repo on the paid Plus host and select that host as the execution target. At the mini, sign in to the web workspace with the same account and open the existing session. You don't need another checkout on the mini. Neither Mac has to stay on if the whole test runs on the host. If it needs a dependency installed only on the MacBook and you run the test there, keep the MacBook awake and online.

Check the handoff before editing anything

Suppose a date-range test fails when the range ends on Sunday. From the MacBook, give the agent a stopping point:

Run the failing case. What date did the calculation return, and what date did the test expect? Show the evidence for what the calculation is supposed to return on a Sunday. If the intended behavior is unclear, ask before editing. Wait for a reply either way.

At the mini, open that session and look for both dates. Reply there once you've confirmed the intended behavior: fix the calculation if it violates the rule, or the test if its expectation is wrong. If you want to inspect both candidate patches first, Orca's Git worktrees let you keep each on a separate branch with its own working files on the host.

Keep reading: the AIHubMix Cloud series

Sources

Top comments (0)