Skip to content

Feature request: show local Codex CLI sessions in the desktop app #24197

@coygeek

Description

@coygeek

Feature request

I would like the Codex desktop app to show, search, and open local sessions created from the standalone Codex CLI/TUI.

Problem

I often use Codex from the CLI directly on my computer, not from the Codex macOS app. Those CLI sessions are real local Codex work sessions, but when I later open the Codex desktop app, I cannot see them there.

This means the desktop app is not a unified view of my Codex work. It only shows the sessions it knows about, while my CLI-created sessions are effectively invisible from the app.

I am not reporting this as a data-loss bug. I understand the app may currently use a different session/indexing path than the standalone CLI. The request is for first-class product support for viewing ordinary CLI-created sessions inside the Codex app.

Local context

  • Platform: macOS 26.5, arm64
  • Codex desktop app: 26.519.41501, bundle version 3044
  • Codex CLI: codex-cli 0.133.0
  • CODEX_HOME: default $HOME/.codex
  • Local CLI session storage includes canonical rollout JSONL files under $HOME/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
  • Local metadata exists in $HOME/.codex/state_5.sqlite, including threads.rollout_path, threads.source, threads.cwd, threads.title, threads.model, and related fields
  • On this machine, state_5.sqlite currently has hundreds of local source='cli' thread rows, including hundreds of unarchived CLI sessions

The important bit: these sessions are not abstract or remote-only. They have local transcript files and local metadata, and the CLI can find/resume them. The desktop app just does not appear to expose them as part of its session/history UI.

Desired behavior

The Codex desktop app should provide a unified local session view that includes ordinary Codex CLI/TUI sessions created on the same machine/account.

At minimum, I would like to be able to:

  • see CLI-created sessions in the desktop app history/sidebar
  • search CLI-created sessions from the app
  • open/read a CLI-created session from the app
  • ideally resume or fork a CLI-created session from the app, if technically supported

Why this matters

For CLI-heavy users, Codex work is split across two surfaces:

  • the CLI, where many real sessions are started and resumed
  • the desktop app, which is useful for browsing, supervising, and managing work

Right now the desktop app has no visible connection to much of my CLI history. That makes the app less useful as a central workspace, because it cannot answer "what have I been doing in Codex?" unless the work started inside the app.

Possible implementation shapes

Any of these would solve the core problem:

  • the app reads/indexes $HOME/.codex/state_5.sqlite and the rollout files referenced by threads.rollout_path
  • the app reads/indexes $HOME/.codex/sessions directly, using the same lookup behavior as the CLI
  • the CLI writes session metadata into a store the app already indexes
  • the app offers an "Import local CLI sessions" or "Show local CLI sessions" option
  • the app provides a read-only local session browser first, if full resume/fork support is not initially safe

The exact storage design is less important than having an official supported bridge between ordinary CLI-created sessions and the desktop app UI.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appenhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions