HappierDocs
Working in a session

Session handoff

Move a live Happier session between machines, keep the same session id, and understand workspace-transfer and direct-session options.

Session handoff lets you move a live Happier session from one machine to another without forking it.

The important promise is simple:

  • the same Happier session id stays in place
  • the active owner changes from one machine to another
  • the conversation can continue on the target machine

This is different from:

Where to start a handoff

You can start handoff from:

  • the session header action menu
  • the Session info screen

Open the action, choose the destination machine, review the handoff options, and confirm.

Move to another directory on the same machine

Development builds also let you select the current machine and choose a different working directory. This requires a daemon with same-machine handoff support; it is not available in older released builds.

For example, a session started in ~/code can continue in ~/code/my-app with the same session id and conversation. Handoff restarts the Agent in the selected directory and updates the session's project grouping. Choose an explicit destination; the current directory is not a valid move.

Workspace transfer defaults off for a same-machine move, so existing files stay where they are. You can still enable the existing workspace-transfer options when you want to copy or synchronize files. Moving a session into a child directory does not require transferring the parent directory's contents.

The sidebar's Move to folder action organizes sessions within their project; it does not change the Agent's working directory.

Transfer session data

In development builds, Transfer session data is on by default for a move to another machine. It copies this session's conversation history to the other machine. Turn it off only when the exact Agent-native session is already there; Happier's shared transcript alone is not enough.

Turning it off also disables workspace copying. Both daemons must advertise compatible existing-state support, and the Agent must support that mode. Otherwise the toggle stays on and disabled. Claude and Codex have development existing-state resolvers; unsupported Agents must use transfer and are refused before the source stops. The target checks native state after the source stops. If that state is missing, the dialog stays open with a remedy: turn Transfer session data on and submit again. The source remains recoverable through the existing handoff recovery flow.

The toggle is hidden for a same-machine directory move, which retains ordinary transfer. This is development behavior, not a released availability claim. The 0.2 and 0.3 daemon protocols differ; their capability bits do not authorize a mixed-version no-transfer move.

Use existing state through the CLI

Development builds expose an existing-state option through the CLI Action when Claude or Codex session files and the workspace are already synchronized to the destination:

happier session actions execute SESSION_ID session.handoff --input-json '{"targetMachineId":"TARGET_MACHINE_ID","stateTransfer":"existing"}' --action-request-id handoff-example-1 --json

Both daemons must run a build that advertises existing-state handoff support, and the server must enable session handoff. Updating checkout files alone does not update a running daemon. Older or unsupported peers are refused before stopping the source session.

This option skips session-state export, transfer, and import, and requires workspace transfer to remain off. The target checks the actual Claude transcript or Codex native index and rollout before preparing the session. Missing destination state prevents completion and leaves the session bound to its source Machine; a stopped source remains recoverable through the existing handoff recovery flow.

The CLI waits for target resume, confirmation, binding, and commit before returning success. If observation fails after admission, inspect the handoff and its recovery state before submitting another request. Omitting stateTransfer, or selecting transfer, retains the ordinary transfer flow.

What handoff preserves

When handoff succeeds:

  • the Happier session id stays the same
  • the transcript stays in the same session
  • session metadata stays attached to that same session
  • the new machine becomes the active owner

For supported providers, the provider runtime state also moves with the session so the target machine can continue the same work instead of starting a brand-new conversation.

What handoff does not do

Session handoff does not automatically:

  • log a provider CLI into the target machine
  • merge or overwrite the target workspace unless you explicitly enable workspace transfer
  • make unsupported providers suddenly resumable across machines

If the target side cannot satisfy the provider/runtime requirements, the handoff cannot complete.

Supported providers

Session handoff is provider-dependent.

Current status:

ProviderStatusNotes
ClaudeSupportedWorks with supported Claude session state transfer.
OpenCodeSupportedWorks with OpenCode session import/export flows.
CodexExperimentalAvailable, but less stable than Claude/OpenCode.
Other providersUnsupportedThe handoff action is hidden or unavailable.

Session types

Session handoff works with both user-facing session models:

  • Happier sessions
  • Direct sessions

See Continuing a session.

Happier sessions

For a Happier session, handoff moves the live owner to another machine while keeping the same Happier-managed session.

This is the simplest case:

  • same Happier session
  • new owning machine
  • same transcript and session id

Direct sessions

For a direct session, handoff shows an extra target-mode choice.

You can choose:

  • Keep direct
  • Convert to synced

Use Keep direct when you want the target machine to keep following the provider-backed session.

Use Convert to synced when you want to move out of the machine-bound direct model and let Happier own the session going forward.

Workspace transfer

Workspace transfer is optional.

By default, Happier keeps the target workspace unchanged unless you turn transfer on.

When enabled, the handoff modal lets you choose:

  • whether to transfer the workspace
  • what to do if the target path already exists
  • how ignored files should be handled

Conflict policies

Current conflict options:

  • Create sibling copy
  • Replace existing path

Replace existing path requires explicit confirmation when the destination already exists.

Ignored files

Current ignored-file options:

  • Exclude ignored files
  • Include selected ignored files

If you choose Include selected ignored files, you can provide include globs such as:

  • dist/**
  • .env.local

Safe-by-default path checks

Happier blocks workspace transfer for unsafe source paths such as:

  • the filesystem root
  • your home directory
  • the shorthand home path (~)

In those cases, the handoff UI forces workspace transfer off instead of attempting to copy an unsafe or excessively broad workspace.

Session handoff settings

You can set default handoff behavior in:

  • Settings -> Session -> Session handoff

Those defaults include:

  • whether workspace transfer is enabled by default
  • the default workspace conflict policy
  • the default ignored-file mode
  • ignored-file include globs
  • the default target mode for direct-session handoff

The modal still lets you override those defaults for an individual handoff.

Related guide:

Connected services and handoff

Connected services are often the easiest way to make handoff work across machines.

Why:

  • the credential lives in your Happier account
  • compatible backends can reuse that credential on another machine
  • you do not need to depend only on the target machine’s native CLI login state

This is especially useful when you want to move a session between:

  • two laptops/desktops
  • a host machine and a VM
  • different machine homes attached to the same account

Connected services do not replace every machine-local auth requirement, but they are the preferred path for cross-machine continuity when the backend supports them.

Related guide:

Provider authentication and handoff

Machine-local provider authentication still matters.

If a provider/backend relies on the native provider CLI login state, the target machine must be ready too.

So the mental model is:

  • Connected services help when the backend can materialize auth from Happier-managed credentials
  • Provider authentication still matters for machine-local provider CLI workflows

Related guide:

What you see during handoff

When you start handoff, Happier shows a progress modal while it:

  • prepares the target machine
  • moves the session state
  • resumes the session on the target
  • updates the session ownership

After completion:

  • the session stays in place in Happier
  • the active machine changes
  • the old owner relinquishes control

Common workflows

Move a live session from one machine to another

Use handoff when you want to keep the same conversation going, but on a different machine.

Examples:

  • move from your laptop to a desktop
  • move from a host machine to a VM
  • move from one dedicated Happier home to another

Keep a direct session provider-backed, but move it

Use Keep direct when the provider-backed ownership model is still what you want and the provider supports direct handoff.

Convert a direct session into a Happier session

Use Convert to synced when you started from a provider-native session but now want Happier to own the transcript and future continuity.

Move the session but leave the target workspace alone

Leave workspace transfer off. This is the safest default when:

  • the target already has the right files
  • you want session continuity without file copying
  • the source path is broad or machine-specific

Troubleshooting

The target machine is not selectable

Usually one of these is true:

  • the machine is offline
  • the machine is the current owner
  • the provider/backend does not support handoff for this session

Workspace transfer is disabled

This usually means:

  • your defaults have workspace transfer off, or
  • Happier detected an unsafe source path such as ~ or a filesystem root

The handoff action is missing

The action can be unavailable when:

  • the provider does not support handoff
  • the session lacks the required provider resume/state information
  • the selected server/build disabled the handoff feature

On this page