Skip to content

Desktop app stuck in cloud-only mode; local sessions ignored even with codexCloudAccess=disabled #10547

Description

@roodboi

What version of Codex is running?

Codex Desktop: 260202.0859 (build 517)

What subscription do you have?

ChatGPT Pro

Which model were you using?

N/A

What platform is your computer?

macOS: 26.2 (arm64)

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

Codex Desktop shows only cloud threads (personal workspace) and ignores local sessions even when local mode is forced in ~/.codex/.codex-global-state.json. CLI can resume local sessions, but the desktop UI does not list them. This persists across reinstalls, cache resets, and build changes.

What steps can reproduce the bug?

  1. Ensure local sessions exist at ~/.codex/sessions/.../*.jsonl
  2. Open Codex Desktop.
  3. Sidebar shows only cloud threads from personal workspace.
  4. Force local mode:
    • codexCloudAccess = disabled
    • environment = null
    • sidebar-workspace-filter-v2 = all
    • Lock file (chflags uchg ~/.codex/.codex-global-state.json)
  5. Restart Codex Desktop.
  6. Result: still only cloud threads; local sessions never appear.

What is the expected behavior?

Local sessions under ~/.codex/sessions appear in the sidebar when codexCloudAccess is disabled (and/or when “All threads” is selected).

Actual
UI only shows cloud threads. Local sessions are ignored. Changing CLI auth to another workspace doesn’t affect the desktop UI.

Additional information

Evidence

  • Local sessions exist and are written by the app:
    • Example: ~/.codex/sessions/2026/02/03/rollout-2026-02-03T13-40-28-019c24ce-590a-7e42-b2e3-efe508ee3731.jsonl
    • Latest session_meta.source = appServer
  • CLI can resume them (codex resume) without issues.
  • Desktop app continues to show only cloud threads.

What I already tried

  • Reinstall older + latest builds
  • Clear app caches:
    • ~/Library/Application Support/Codex
    • ~/Library/Caches/com.openai.codex
    • ~/Library/Preferences/com.openai.codex.plist
  • Rebuild history.jsonl from sessions
  • Convert .jsonl to .json (copies)
  • Force onboarding override
  • Force local mode in .codex-global-state.json and lock file
  • Full Disk Access enabled for Codex
  • Result unchanged

Desktop UI appears to ignore local sessions even when local mode is forced. It may be stuck in cloud-only list mode or failing to query local thread list from app-server.

Here are the fully anonymized snippets with fake paths and user:

Sanitized state (selected keys, fake paths)

{
  "codexCloudAccess": "disabled",
  "environment": null,
  "sidebar-view-v2": "threads",
  "sidebar-workspace-filter-v2": "all"
}
active-workspace-roots: [
  "/Users/me/dev/project-1",
  "/Users/me/dev/project-2",
  "/Users/me/dev/project-3",
  "/Users/me/dev/project-4",
  "/Users/me/dev/project-5",
  "/Users/me/dev/project-6",
  "/Users/me/.codex/workspaces/default"
]

Sanitized latest session_meta (fake user/path)

{
  "id": "019c24ce-590a-7e42-b2e3-efe508ee3731",
  "timestamp": "2026-02-03T18:40:28.938Z",
  "cwd": "/Users/me/.codex/workspaces/default",
  "originator": "Codex Desktop",
  "source": "appServer",
  "cli_version": "0.94.0-alpha.10"
}

Sanitized codex-tui.log excerpt (fake user/path)

2026-02-03T18:42:09.715497Z  INFO codex_core::rollout::recorder: Resuming rollout from "/Users/me/..."
2026-02-03T18:42:09.722553Z  INFO codex_core::rollout::recorder: Resumed rollout successfully from "/Users/me/..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions