Skip to content

Codex CLI session appears in ChatGPT Work instead of Codex history #33910

Open

Description

@ald8s

What version of the Codex App are you using (From “About Codex” dialog)?

26.715.21425

What subscription do you have?

ChatGPT Plus

What platform is your computer?

27.0.0 arm64 arm

What issue are you seeing?

A Codex CLI session is appearing in the ChatGPT desktop app under ChatGPT/Work instead of appearing in the Codex section.

I started the task using Codex CLI in Terminal. After completion, the session appeared as a ChatGPT Work thread and showed generated outputs (for example Work-Logs.md).

However, when opening the Codex section in the desktop app, it shows "No chats" and "No projects".

The session logs confirm this was created by Codex CLI:

  • originator: codex-tui
  • source: cli
  • thread_source: user
  • Codex CLI version: 0.144.5

Expected behavior:
Codex CLI sessions should appear in Codex history.

Actual behavior:
Codex CLI sessions appear under ChatGPT/Work while Codex history remains empty.

What steps can reproduce the bug?

  1. Start a task using Codex CLI in Terminal.
  2. Allow Codex CLI to complete a task that creates or modifies files.
  3. Open the ChatGPT/Codex desktop app.
  4. Check the ChatGPT/Work section.
  5. The Codex CLI session appears there with outputs.
  6. Open the Codex section.
  7. Codex shows "No chats" and "No projects".

I fully quit and relaunched the desktop app, but the issue remained.

Environment:

  • macOS 27 beta
  • ChatGPT desktop app build 26.715.21425
  • Codex CLI version 0.144.5
  • Same OpenAI account used in CLI, desktop app, and browser.

What is the expected behavior?

The expected behavior is that any session created through Codex CLI should appear in the Codex section/history of the desktop app, not under ChatGPT/Work.

The Codex desktop app should correctly recognize and display Codex CLI sessions associated with the same OpenAI account.

After running a task from Codex CLI, I should be able to find that session in Codex history and continue working from the Codex interface.

Additional information

No response

Activity

  1. added
    app
    on Jul 17, 2026
  2. added
    bug
    session
    on Jul 17, 2026
  3. NorethSea commented on Jul 21, 2026

    @NorethSea

    This is very close to the behavior I observed, so I am closing #34486 as a duplicate/related report and adding the app-server details here.

    My reproduction uses a custom client built on codex app-server --stdio, rather than codex exec:

    • ChatGPT Desktop app: 26.715.61943 (build 5628)
    • Codex CLI bundled with the desktop app: 0.145.0-alpha.27
    • macOS 26.5.2 arm64
    • Thread ID: 019f83a5-9058-7d21-a0a6-6c0f486db3f0

    The created conversation appears under ChatGPT Work instead of Codex. Its local metadata is:

    source: vscode
    thread_source: user
    

    Passing threadSource: "user" to thread/start does not change the UI category. Older conversations created before the ChatGPT/Codex integration upgrade were classified under Codex.

    This suggests the same visible classification problem affects both Codex CLI and custom app-server-created conversations, although the persisted source values differ.

    Related reports:

  4. pablopovar commented on Oct 12, 2026

    @pablopovar

    I'm seeing the same behavior on Linux with Codex CLI, and there's an important additional detail: it happens even when I'm using a locally hosted model through Ollama, not OpenAI-hosted inference.

    Environment

    • OS: Linux
    • Codex CLI: v0.160.0 (also reproduced with v0.162.1)
    • Model: gpt-oss:20b
    • Model provider: ollama
    • Reasoning effort: low
    • Authentication: ChatGPT Plus (codex login status reports Logged in using ChatGPT)
    • Permissions: Workspace (Ask for approval)

    Observed behavior

    Every time I start a new Codex CLI session and submit a prompt, a corresponding conversation appears in my ChatGPT desktop application's Work history.

    This happens with both:

    • gpt-oss:20b, running inference locally through Ollama
    • gpt-oss:20b-cloud, running inference through Ollama Cloud

    The resulting Work conversations contain the prompts and responses from my CLI sessions, not merely session titles or metadata.

    For example, I asked the locally hosted model:

    what is the system's time and timezone?

    The model returned an unrelated explanation about parsing JSONL files. That exact prompt and unrelated response subsequently appeared in ChatGPT Work, as shown in the attached screenshot.

    This demonstrates that the behavior is not limited to sessions using OpenAI-hosted models or Ollama Cloud inference.

    Expected behavior

    When explicitly configuring Codex CLI to use Ollama for local inference, I would not expect the resulting conversations to appear automatically in ChatGPT Work, particularly without any indication that session content is being synchronized with my ChatGPT account.

    Questions for the Codex team

    1. Is this synchronization intentional, or is it a bug in session classification or routing?
    2. Why are conversations using locally hosted Ollama inference appearing in ChatGPT Work?
    3. What data is transmitted to OpenAI during these sessions: session metadata, prompts, tool outputs, full model responses, or something else?
    4. Does this activity consume ChatGPT/Codex subscription allowances or Work credits, despite inference being performed by Ollama?
    5. Is there a supported way to disable ChatGPT session synchronization while retaining Codex CLI and Ollama functionality?

    This is more than a sidebar organization issue. It raises questions about data boundaries, privacy, and usage accounting when using an explicitly configured third-party inference provider.

    /status
    
      >_ OpenAI Codex (v0.160.0)
    
      Visit https://chatgpt.com/codex/settings/usage for up-to-date
      information on rate limits and credits
    
      Model:               gpt-oss:20b (reasoning low, summaries concise)
      Model provider:      ollama
      Directory:           ~/ownCloud/Projects/ai-labs/ai-observer/projects/payload
      Permissions:         Workspace (Ask for approval)
      Agents.md:           <none>
      Account:             Plus
      Collaboration mode:  Default
      Session:             01a12ef6-f354-7623-ae84-d692f91f78be
    
      5h limit:            [██████████████████░░] 90% left (resets 7:25 AM)
      Weekly limit:        [███████████████░░░░░] 74% left (resets 12:28 AM on 18 Oct)
    
    what is the system's time and timezone?
    
    Yes – it works, but you’ll need a slightly different parsing approach than for a standard JSON file.
    
    Why the change matters
    
    A regular .json file is usually one big object or array that can be parsed with json.load() (or pd.read_json(...)).
    A .jsonl (JSON Lines) file contains one JSON object per line. Each line is a separate record, so you must read and parse each line individually.
    
    Typical solutions
    
     Language             Common approach
    ━━━━━━━━━━━━━━━━━━━  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     Python               python<br>import json<br>records = []<br>with open('data.jsonl') as f:<br>    for line in f:<br>        records.append(json.loads(line))<br>
    ───────────────────  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                          Using pandas: pd.read_json('data.jsonl', lines=True)
    ───────────────────  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     JavaScript (Node)    js<br>const fs = require('fs');\nconst readline = require('readline');\nconst stream = fs.createReadStream('data.jsonl');\nconst rl = readline.createInterface({ input: stream });
                          \nrl.on('line', line => {\n    const obj = JSON.parse(line);\n    // process obj\n});
    ───────────────────  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     Shell                `jq -Rcs 'split("\n")[:-1]
    
    Key points
    
    Treat each line as a separate JSON string.
    Avoid loading the entire file into memory if it’s large – stream or iterate line‑by‑line.
    If you originally used json.load() on a plain .json, replace that call with a loop (or pd.read_json(..., lines=True)).
    
    So yes, the same logic applies, but just adjust the parser to handle one JSON object per line instead of one big structure.
      Worked for 2m 0s • 3:31 AM
    

    I can reproduce this with both local and cloud Ollama models. Screenshot attached showing the duplicated Work conversations and the complete prompt/response from the local-model session.

    Image
  5. binfouzan commented on Oct 14, 2026

    @binfouzan

    I can reproduce a closely related classification issue on the current macOS desktop app.

    • ChatGPT desktop app: 26.1007.71326
    • macOS: 26.7.1 (arm64)
    • Codex CLI: 0.162.1
    • A session started in the interactive Codex CLI appears in the desktop app's regular ChatGPT chat list. The same entry does not appear in ChatGPT on the web.
    • The desktop thread inventory identifies the entry as a local Codex thread (kind: codex, host: local), so it appears to be displayed in the wrong sidebar category.

    Expected: CLI-origin Codex sessions should appear under Codex history, with a clear separation from regular ChatGPT chats.

    I have omitted the private chat title, local project path, and session ID from this public comment. I can provide a session ID privately if needed.

  6. lumberman commented on Oct 17, 2026

    @lumberman

    I’m experiencing the same issue on Linux, using T3 Code with Codex CLI, authenticated through my ChatGPT Pro subscription.

    My workflow uses multiple Codex agents for implementation, research, testing, and code review. Each agent creates a separate Codex session.

    Observed behavior:

    • These sessions automatically appear as regular conversations in my ChatGPT web app.
    • Their titles contain internal agent instructions such as "Act as the review sub-agent for this task."
    • A single development workflow can generate dozens of conversations, overwhelming my normal ChatGPT history.
    • I want to retain these sessions in T3 Code and Codex without mixing them with conversations I initiate directly in ChatGPT.

    Expected behavior:

    Codex CLI sessions should remain separate from ordinary ChatGPT conversations. Ideally, users should be able to disable synchronization of CLI-generated sessions to ChatGPT history while retaining ChatGPT subscription authentication.

    This is particularly important for developers using multi-agent orchestration, where large numbers of short-lived sessions are normal.

    This is a significant usability issue for multi-agent workflows.

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

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions