The simplest reliable handover is a committed and pushed branch, a three-line status note, and, only if a long-running process must stay alive, a named tmux session on a Mac both developers are authorised to use. Closing a viewer does not stop anything on the Mac, but it does not pass the desktop to your colleague either. This page covers what happens on disconnect, how to pass context without sharing credentials, and when a shared tmux session is worth the setup.
What happens when a VNC viewer disconnects?
The macOS user session keeps running. Closing a Screen Sharing or VNC viewer stops framebuffer updates to that client, while applications stay open, background processes continue and the desktop stays as it was. Apple's Screen Sharing user guide documents the viewer-side connect and disconnect steps. It says the host must have Screen Sharing turned on in System Settings and that the viewer supplies a user name and password. It does not describe handing a session between users.
What can interrupt the next connection is the host's own behaviour, not the viewer:
- A locked screen, from the screensaver, the Lock Screen menu or a "Require password after screensaver" setting, needs the account password on the next connection.
caffeinate -dikeeps the display from sleeping and the system from idle-sleeping while it runs. It does not disable the screensaver, the Lock Screen command, or any password-after-sleep policy, and a screen that is already locked stays locked. Use it to stop the host going dark during a short handover, not to bypass authentication.- If each developer has their own macOS login, closing the viewer does not hand the GUI from one user to the other. The desktop and open applications belong to whichever account was signed in, and a different account gets its own desktop and its own tmux server.
Terminal.app windows live inside one GUI user session. If that window is closed or the user logs out, those shells end, which is why a long build often lives in a tmux session started from the same user's shell.
How do I hand over without sharing credentials?
Pass the work, not the session. This protocol needs no shared password:
- Commit or stash. Run
git add -A && git commit -m "WIP: handover"orgit stash push -m "handover-$(date +%Y%m%d-%H%M)", then push the branch. Your colleague pulls it on their own login or machine. - Move long work off the desktop. Push the artifact a reviewer needs, such as a build log, an
.ipa, an.appor a test report, to your CI run, a shared artifact store or an object bucket. The colleague downloads it and does not need your screen. - Leave a written note. Three lines are enough: last action, next step, blockers. Put it in the pull request, the ticket or a shared doc, not only in a terminal buffer.
- Consider a live session last. If a process must stay running on the same Mac and both developers need to watch its output, use the tmux pattern below.
Do not share your Figment account login, including any one-time link, with anyone else, because credentials are per tenant and tied to the account owner. To give a colleague access to your Mac, create a normal macOS account for them and use the Screen Sharing and Remote Login permissions on the Mac. Figment has not published multi-user session behaviour, so confirm the connection details shown in your account.
When is a shared tmux session worth it?
Use one when a build, simulator or test run must stay attached to one shell and both developers need to see the same output. The OpenBSD tmux(1) manual documents the primitives: new-session -s <name>, attach-session, attach-session -d to evict other clients, and rename-window. Tmux sockets are owned by the user who created them, and by default only that user and root can attach. A second person can join in one of two ways: both developers sign in as the same authorised macOS account, or the Mac's owner uses tmux's server-access control to grant another local account access to the running server. Do either only when both colleagues are authorised users of the Mac. Separate macOS accounts do not share a GUI desktop or a tmux server automatically.
The minimum pattern, run as the same macOS user:
# Outgoing developer, at the start of the work block
tmux new-session -s feature-auth
# Optional: keep the display awake during a brief handover window
caffeinate -di -t 3600 &
CAFF_PID=$!
echo "caffeinate pid is $CAFF_PID"
# Before disconnecting the viewer
tmux rename-window build
# Leave a note inside the pane as well as in the PR
printf 'last: kicked xcodebuild archive\nnext: notarize when green\nblockers: none\n' \
| tee ~/handover.txt
# Incoming developer, after reconnecting as the same macOS account
tmux attach -d -t feature-auth
cat ~/handover.txt
# When settled, release caffeinate: only the PID you just captured
kill "$CAFF_PID"
Only kill a caffeinate process you launched and whose PID you captured in the same shell. If that variable was lost, run pgrep -u "$USER" caffeinate and kill the process you recognise, not a number copied from chat. Avoid literal <pid> placeholders in commands you run, because angle brackets are shell redirections.
What does the handover card look like?
Steps 1 to 3 cover almost every handover. Step 4 is for cases that genuinely need a live shell on the same Mac.
| Step | Outgoing | Incoming |
|---|---|---|
| 1 | git commit/stash and push the branch | Pull the branch |
| 2 | Upload artifacts to CI or a shared bucket | Download the artifacts you need |
| 3 | Write a three-line note in the PR or ticket | Read the note before touching the Mac |
| 4 | (If live) tmux rename-window, record the PID in the note | (If live) tmux attach -d -t <name> |
| 5 | Disconnect the viewer; do not log out | Confirm with the outgoing developer before resuming input |
Can two developers share one Figment Mac for a handover?
Each Figment plan serves one customer account, so a live handover works when both developers are authorised users on the same Mac under your account. The Apple Silicon Mac VM ($39 a month) or the Dedicated M4 Pro 48 GB ($349 a month) suits a pair that shares builds. If each developer needs their own Mac, plans for several Macs are quoted on a call. See Mac hosting plans.
Related: Shared remote desktop for multi-user Mac rentals · Remote Mac setup for video editing · Run GitHub Actions self-hosted runners on a Mac