codex - 💡(How to fix) Fix Codex Mac app hides unarchived local threads until they are messaged again [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20959Fetched 2026-05-05 05:55:31
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
cross-referenced ×3labeled ×3commented ×1

Root Cause

Local inspection before/after suggests the visibility change was caused by the thread becoming recent/active again, not by archive state or workspace metadata being repaired.

Code Example

select id, archived, source, cwd, updated_at, rollout_path
from threads
where id = '<THREAD_ID>';

---

jq '.["thread-workspace-root-hints"]["<THREAD_ID>"], .["electron-saved-workspace-roots"]' ~/.codex/.codex-global-state.json
RAW_BUFFERClick to expand / collapse

What version of Codex are you using?

Codex app latest-version cache shows 0.128.0.

What platform is your computer?

macOS arm64.

What issue are you seeing?

Codex Mac app hid an existing local Desktop thread from the project sidebar even though the underlying thread data was intact and the thread was not archived.

After resuming the hidden thread with Codex CLI and sending a new message, the same thread reappeared in the Codex app sidebar.

Local inspection before/after suggests the visibility change was caused by the thread becoming recent/active again, not by archive state or workspace metadata being repaired.

Local evidence, redacted

For the missing thread:

  • threads.archived = 0
  • source = vscode
  • cwd = <PROJECT_PATH>
  • rollout file existed under ~/.codex/sessions/.../<THREAD_ID>.jsonl
  • the direct parent/root fork lineage was also unarchived
  • the project path was present in the saved workspace roots
  • the app sidebar still did not show the thread under that project

After resuming that hidden thread with Codex CLI and sending a new message:

  • archived stayed 0
  • cwd stayed unchanged
  • thread-workspace-root-hints[<THREAD_ID>] was still absent/null
  • updated_at advanced to the new message time
  • the rollout JSONL gained the new message/events
  • the thread reappeared in the app sidebar

Example queries used locally:

select id, archived, source, cwd, updated_at, rollout_path
from threads
where id = '<THREAD_ID>';
jq '.["thread-workspace-root-hints"]["<THREAD_ID>"], .["electron-saved-workspace-roots"]' ~/.codex/.codex-global-state.json

Expected behavior

All unarchived local Desktop threads for a saved workspace should remain discoverable in the Codex app sidebar/history, even if they are older and have not been recently messaged.

A user should not need to recover an existing unarchived local thread through codex resume and send a message just to make it reappear in the Desktop app.

Actual behavior

The thread was hidden from the sidebar until it was resumed through Codex CLI and messaged again. Once messaged, it reappeared, while archive state and workspace-root metadata did not materially change.

This makes it look like important work history has been lost, even though the underlying local thread files and DB rows still exist.

Related issues

This seems related to, but not exactly the same as:

  • #14751
  • #16095
  • #14519
  • #15448

The distinctive signal here is: an unarchived local Desktop thread becomes visible again after codex resume + a new message bumps recency, without archive/workspace metadata changing.

extent analysis

TL;DR

The issue can be temporarily worked around by resuming the hidden thread with Codex CLI and sending a new message to bump its recency.

Guidance

  • Investigate the thread's updated_at timestamp and how it affects visibility in the Codex app sidebar.
  • Verify that the thread's archive state and workspace metadata are correctly set and not causing the issue.
  • Check the thread-workspace-root-hints and electron-saved-workspace-roots fields in the Codex global state JSON to ensure they are correctly populated.
  • Consider modifying the Codex app's logic to include unarchived local Desktop threads in the sidebar regardless of their recency.

Example

No code snippet is provided as the issue does not imply a specific code change.

Notes

The issue seems related to the thread's recency and how it affects visibility in the Codex app sidebar. The provided queries and local evidence suggest that the thread's archive state and workspace metadata are not the cause of the issue.

Recommendation

Apply workaround: resume the hidden thread with Codex CLI and send a new message to bump its recency, as this has been shown to temporarily resolve the issue. This workaround allows users to access their important work history until a more permanent fix is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

All unarchived local Desktop threads for a saved workspace should remain discoverable in the Codex app sidebar/history, even if they are older and have not been recently messaged.

A user should not need to recover an existing unarchived local thread through codex resume and send a message just to make it reappear in the Desktop app.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Mac app hides unarchived local threads until they are messaged again [1 comments, 2 participants]