codex icon indicating copy to clipboard operation
codex copied to clipboard

iOS remote thread/list sends sourceKinds: [] and gets empty list despite Mac host having threads

Open zikcheng opened this issue 6 months ago • 3 comments

What happened?

Codex iOS remote control can start a task on the connected Mac host, and the task is created and visible in the Mac Codex app. However, after returning to the Codex task list on iOS, the list immediately shows the empty state and no tasks/threads are visible.

This does not appear to be a Mac connectivity or task creation problem. The Mac app-server receives the iOS thread/start request and creates a local thread successfully. The problem appears when iOS refreshes the list: it sends thread/list with sourceKinds: [], and the Mac app-server responds with an empty list.

Environment

  • Mac Codex App: 26.527.31326 (CFBundleVersion 3390)
  • Codex CLI: 0.135.0-alpha.1
  • macOS: 26.5 (25F71)
  • iOS remote client seen in Mac logs: codex_chatgpt_ios_remote 1.2026.139
  • Auth/model path: ChatGPT auth with OpenAI/Codex default model, not a custom provider

Steps to reproduce

  1. Open Codex in ChatGPT iOS.
  2. Select a connected Mac host. The host shows as online.
  3. Start a short task from iOS, for example 你好.
  4. Observe that the task is created and completed in the Mac Codex app.
  5. Return to the Codex task list on iOS.

Expected behavior

The iOS Codex task list should show the created task/thread, or at least should be able to list the host's available threads after refresh.

Actual behavior

The task may briefly appear while navigating, but after returning to the list the iOS screen shows the empty state. The Mac app still has the thread.

Evidence from Mac logs

The iOS client successfully starts a thread:

app_server.request ... otel.name="thread/start" ... app_server.client_name="codex_chatgpt_ios_remote" app_server.client_version="1.2026.139"

The Mac state DB then contains the new local thread:

019e826f-35ee-7c10-8c5d-f75aa6a3acb8 | 你好 | source=vscode | cwd=<redacted> | archived=0

When the iOS list refreshes, the client sends:

{
  "method": "thread/list",
  "params": {
    "sortDirection": "desc",
    "sourceKinds": [],
    "sortKey": "updated_at",
    "limit": 25
  }
}

The Mac app-server responds:

{
  "result": {
    "data": [],
    "nextCursor": null,
    "backwardsCursor": null
  }
}

This looks like either:

  • the iOS client expects sourceKinds: [] to mean "all sources", but the Mac app-server treats it as "no sources"; or
  • the iOS client should omit sourceKinds when no source filter is intended.

Related issues

  • #24780 looks similar but includes a custom provider variable. This report reproduces on the default ChatGPT/OpenAI path.
  • #22762 and #23062 also look related to mobile remote thread visibility, but this report includes a specific thread/list request/response showing the empty result.

zikcheng avatar Jun 01 '26 09:06 zikcheng

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

  • #24780
  • #24462
  • #24464
  • #24447

Powered by Codex Action

github-actions[bot] avatar Jun 01 '26 09:06 github-actions[bot]

I encountered a similar empty task-list issue with Codex Remote, but with a Windows host rather than a Mac.

Environment

  • Host: Windows, Codex desktop app
  • Client: ChatGPT app on iPhone (Codex Remote)
  • Subscription: ChatGPT Plus
  • Observed: 2026-11-11
  • Exact app versions: not captured

Symptoms

  • Codex Remote had been working normally until the task list suddenly became empty ("No tasks yet").
  • The Windows host showed as online (green indicator).
  • My existing project and conversations were still present and usable in the Windows Codex app, but none appeared on iPhone.

What I tried

  1. Turned remote connections off and back on in the Windows Codex app — no change.
  2. Revoked iPhone access and paired it again with the QR code — no change.
  3. Confirmed the iPhone appeared in the host's connected devices with a recent connection — the task list remained empty.
  4. Deleted and reinstalled the ChatGPT iOS app — the existing project and conversations became visible again.

I did not capture protocol logs, so I cannot confirm whether this has the same root cause as the sourceKinds: [] behavior reported here. However, the fact that reinstalling the iOS client resolved it may be a useful troubleshooting clue.

tttktttt0-maker avatar Nov 11 '26 07:11 tttktttt0-maker

Related symptom on a newer client, with a different verified diagnostic finding: on iOS Remote 1.2026.307, my connected Mac's entire task list disappeared shortly after task creation. I subsequently confirmed that the list returned after a backup-preserving repair of historical rollout/state-index inconsistencies on the host.

Full report: https://github.com/openai/codex/issues/60778#issuecomment-6887106511

codex doctor found stale rollout paths and an archived parent/continuation identity mismatch even though SQLite integrity passed. After repair, rollout/index parity reported zero missing rows, stale rows, or duplicate IDs, and the affected sessions were readable again without changing the paginated history records.

I did not capture the failing mobile request parameters or response payload, so I am not claiming that this reproduces or resolves the sourceKinds: [] behavior in the original report. This is an additional diagnostic path for the same empty-list symptom; long-term recovery and the exact mechanism are not yet established.

brunocechet avatar Nov 15 '26 01:11 brunocechet