Skip to content

Picker UI to import Codex CLI sessions into the current project #971

Closed

Description

@currentbits

Issue #433 backend lists and imports Codex rollouts via threads.listCliSessions / threads.importCliSession. This slice adds the desktop picker so a user can choose a session and import it into the current project.

Constraints:

  • Reuse listCliSessions / importCliSession (this worktree is missing those APIs; port listCodexSessions + importCodexSession from the sibling scan without copying ~/.codex or adding a second store).
  • Do not change Eject to terminal (and back): resume a thread in the raw CLI inside its worktree #554 reclaim (absorbCodexSessionTurns / setEjected) or flushOrchNotices writer-lock parking.
  • Renderer cannot supply a home path.
  • Re-import of the same Codex sessionId is a no-op (same thread).

UI:

  • New thread caret: "Import Codex session…"
  • Modal lists CODEX_HOME/sessions candidates (sessionId + relative age).
  • Choosing one calls importCliSession({ sessionId, projectId }) and selects the thread.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 6, 2026
  2. currentbits commented on Sep 6, 2026

    @currentbits
    OwnerAuthor

    Picker is on the New thread caret. listCliSessions / importCliSession are wired; renderer cannot pass a home path. Re-import stays idempotent. Tests: electron list/import/IPC/seam 33/33, renderer import picker 5/5.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions