Skip to content

Feature request: Codex workspace continuity across devices #34804

Open

Description

@alexanderxcmo

Problem

Codex Remote already enables developers to connect to Codex running on another trusted machine and continue working with the same repository and session context.

After testing a multi-device workflow (MacBook Pro connecting to Mac mini), the core remote session experience works well. The remaining gap is preserving the complete interactive workspace state when moving between devices.

Today the developer may still need to manually reconstruct parts of their working environment.

Example:

A developer is working on a Mac mini:

  • TapInn repository open
  • active Codex conversation
  • files open in the workspace
  • editor layout
  • diff view
  • terminal sessions
  • recent test output
  • current task context

Later they continue from a MacBook Pro. The Codex session and repository are available, but the complete workspace context is not necessarily restored.

Proposed feature: Codex Workspace Continuity

Allow Codex projects/workspaces to persist and restore interactive workspace state across trusted devices.

A workspace should remember:

  • active repository/project
  • active Codex conversation
  • current task state
  • opened files
  • editor/workspace layout
  • last viewed diff
  • terminal/session state where possible
  • recent commands and test results
  • workspace notes/context

Example:

Mac mini
  TapInn Workspace
       |
       sync
       |
MacBook Pro
  Resume TapInn Workspace

Suggested approach

Do not sync the filesystem itself. Keep source code and build artifacts local to the execution host.

Sync workspace metadata and context:

Codex Workspace
|
├── Repository reference
├── Conversation state
├── Task context
├── UI/workspace state
├── Recent artifacts
└── Device metadata

Keep local:

  • repository files
  • node_modules/build output
  • secrets
  • machine-specific configuration

User experience

A developer should be able to:

  1. Start work on one machine.
  2. Leave that machine running.
  3. Open another trusted device.
  4. Select "Resume workspace".
  5. Continue with the same working context without rebuilding the environment manually.

Why this matters

AI coding workflows are becoming multi-device by nature:

  • desktop workstation
  • laptop
  • home machine
  • cloud workers

Codex already handles remote execution and session continuity. The next step is making the entire workspace portable while keeping execution local.

This would be similar to Apple Handoff, but designed for AI coding sessions: move the working context, not the entire machine.

Activity

  1. added
    enhancement
    app
    session
    on Jul 22, 2026
  2. github-actions commented on Jul 22, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. changed the title [-]Feature request: Persistent Codex workspace state across remote machines[/-] [+]Feature request: Codex workspace continuity across devices[/+] on Jul 22, 2026
  4. alexanderxcmo commented on Jul 22, 2026

    @alexanderxcmo
    Author

    Great to see related work around cross-device task continuity (#34756). After testing Codex Remote between a MacBook Pro and Mac mini, the core session continuity already works well: repository access and Codex session context can follow the user.

    The remaining gap I noticed is full workspace continuity, not just task continuation.

    A future Codex workspace could restore the interactive environment around a task:

    • open files
    • editor/workspace layout
    • diff views
    • terminal sessions where possible
    • recent commands and test results
    • active workspace context

    The goal would not be to sync the filesystem itself. Code and execution should remain local to the host machine. The missing layer is restoring the user's working context when moving between trusted devices.

    This feels closer to Apple Handoff for AI coding workflows: move the workspace context, not the entire machine.

  5. jyongchul commented on Jul 31, 2026

    @jyongchul

    I hit a concrete variant of this continuity gap while using Codex Desktop to coordinate work between two trusted, user-owned Linux servers over SSH.

    Reproduction

    1. A long-running third-party coding-agent conversation existed on Server A, backed by a host-local SQLite conversation database and WAL.
    2. The project and a launcher were moved to Server B, where the launcher started successfully but selected a different Server B-local conversation.
    3. Process/tmux checks looked healthy, but the visible agent UI was actually at first-run onboarding rather than the prior working conversation.
    4. The user explicitly requested and authorized moving the source conversation state to the other user-owned server.
    5. Codex's cross-device safety boundary categorically refused to transfer the raw conversation database/SQLite/WAL, even though both endpoints were trusted and fully owned by the same user.
    6. The only available workaround was a generated Markdown handoff. That preserved much of the technical context but was not exact conversation continuity and intentionally redacted some account-identifying content.

    Why this is a product gap

    The current behavior presents a false choice:

    • copy private state manually outside Codex, without a supported integrity/safety workflow; or
    • lose exact conversation continuity and accept a lossy handoff.

    It also appears to apply Codex's own local-session safety boundary broadly to user-owned third-party application data. There is no supported, owner-authorized migration mode that distinguishes authentication secrets from the conversation data the user explicitly wants to move.

    Requested behavior

    Please provide a supported migration/handoff workflow for trusted user-owned hosts. Ideally it would:

    • distinguish Codex authentication/OAuth/browser state from user-owned conversation content and third-party agent databases;
    • require explicit source and destination host confirmation plus an elevated warning;
    • quiesce the source process and use SQLite's supported backup/snapshot mechanism instead of copying a live DB/WAL pair;
    • encrypt transport, checksum the artifact, preserve a source rollback copy, and validate the restored DB on the target;
    • require target-local reauthentication rather than migrating credentials;
    • allow exact conversation import/resume when the user explicitly opts in;
    • clearly report what will be omitted before generating a lossy handoff, rather than presenting the handoff as equivalent continuity.

    If raw migration must remain unsupported, an official encrypted conversation export/import format that excludes credentials but preserves the full user-visible transcript, tool state needed for resume, attachments by reference, project mapping, and task checkpoints would still solve most of this case.

    Environment: Codex Desktop on Windows coordinating two Linux hosts over SSH; both servers and all data were owned by the same user. No credentials, raw database contents, conversation identifiers, or private transcript data are included in this report.

  6. nicklazarevic commented on Aug 6, 2026

    @nicklazarevic

    Problem

    Codex Remote already enables developers to connect to Codex running on another trusted machine and continue working with the same repository and session context.

    After testing a multi-device workflow (MacBook Pro connecting to Mac mini), the core remote session experience works well. The remaining gap is preserving the complete interactive workspace state when moving between devices.

    Today the developer may still need to manually reconstruct parts of their working environment.

    Example:

    A developer is working on a Mac mini:

    • TapInn repository open
    • active Codex conversation
    • files open in the workspace
    • editor layout
    • diff view
    • terminal sessions
    • recent test output
    • current task context

    Later they continue from a MacBook Pro. The Codex session and repository are available, but the complete workspace context is not necessarily restored.

    Proposed feature: Codex Workspace Continuity

    Allow Codex projects/workspaces to persist and restore interactive workspace state across trusted devices.

    A workspace should remember:

    • active repository/project
    • active Codex conversation
    • current task state
    • opened files
    • editor/workspace layout
    • last viewed diff
    • terminal/session state where possible
    • recent commands and test results
    • workspace notes/context

    Example:

    Mac mini
      TapInn Workspace
           |
           sync
           |
    MacBook Pro
      Resume TapInn Workspace
    

    Suggested approach

    Do not sync the filesystem itself. Keep source code and build artifacts local to the execution host.

    Sync workspace metadata and context:

    Codex Workspace
    |
    ├── Repository reference
    ├── Conversation state
    ├── Task context
    ├── UI/workspace state
    ├── Recent artifacts
    └── Device metadata
    

    Keep local:

    • repository files
    • node_modules/build output
    • secrets
    • machine-specific configuration

    User experience

    A developer should be able to:

    1. Start work on one machine.
    2. Leave that machine running.
    3. Open another trusted device.
    4. Select "Resume workspace".
    5. Continue with the same working context without rebuilding the environment manually.

    Why this matters

    AI coding workflows are becoming multi-device by nature:

    • desktop workstation
    • laptop
    • home machine
    • cloud workers

    Codex already handles remote execution and session continuity. The next step is making the entire workspace portable while keeping execution local.

    This would be similar to Apple Handoff, but designed for AI coding sessions: move the working context, not the entire machine.

  7. nicklazarevic commented on Aug 6, 2026

    @nicklazarevic

    I have exactly this workflow.

    I use a MacBook Air while traveling and a Mac mini at my office, both signed into the same ChatGPT Pro account.

    My actual code lives on a remote server, but the local Codex workspace and conversation context remain tied to the Mac where they were created.

    Every time I switch computers I lose the accumulated Codex reasoning and have to rebuild context before I can continue working.

    Workspace continuity across trusted devices would make a tremendous difference for professional developers who routinely switch between desktop and laptop environments.

    Thank you for considering this enhancement.

  8. CCCCY-ci commented on Aug 24, 2026

    @CCCCY-ci

    I like the “workspace continuity” framing here.

    I’ve been working on a similar idea with CtxHop. It started as cross-device Codex session handoff, and it can optionally transfer workspace state/files together with the session when moving to another machine.

    It doesn’t restore the full editor UI yet, but it covers part of this handoff problem today:

    https://github.com/CCCCY-ci/ctxhop

  9. tenequm commented on Sep 7, 2026

    @tenequm

    This ask splits into two layers with very different difficulty, and the split is worth making explicit:

    1. Editor layout, terminals, diff views, task UI - only OpenAI can restore those, and that part of the request stands.
    2. The conversation itself - "the accumulated Codex reasoning" from the comment above - is not lost when you switch machines. It is sitting on the Mac you walked away from, as plain JSONL under ~/.codex/sessions. That half needs no new feature, only a store both machines can see: even a synced copy of that directory makes codex resume work from the other device today.

    I built pond to do the second half properly: every machine continuously syncs its sessions into one store you own (a local dir or your own S3 bucket), covering Codex, Claude Code and other agents together, searchable across all of it, and pond resume writes a session back out in Codex's native format on whichever machine you sit down at. It is also most of the export/import format asked for above - the full transcript with tool state, portable across machines and even across agents - though credentials handling and UI state stay out of scope: it moves the conversation, not the workspace. The workspace layer is genuinely OpenAI's to build; the conversation layer does not have to wait for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementremotesession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions