codex - 💡(How to fix) Fix Desktop project sidebar hides sessions when Symphony automation threads flood local thread store [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#20185Fetched 2026-04-30 06:32:32
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1cross-referenced ×1

Root Cause

This was not caused by deleting ~/.codex. Local state was still present.

Code Example

26.422.71525 (build 2210)

---

Pro

---

macOS 25.4.0, M3 Max

---

~/.codex/sessions had 137 rollout files
~/.codex/state_5.sqlite had 138 thread records
project threads still existed for multiple projects

---

backup: /Users/jk/Desktop/codex-global-state-repair-20260428-190419
repaired hints: 131 thread-to-workspace mappings
JSON validated cleanly

---

sqlite3 ~/.codex/state_5.sqlite "select count(*) from threads;"
# 209

find ~/.codex/sessions -type f -name '*.jsonl' | wc -l
# 206

wc -l ~/.codex/session_index.jsonl
# 38 ~/.codex/session_index.jsonl
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using?

26.422.71525 (build 2210)

What subscription do you have?

Pro

What platform is your computer?

macOS 25.4.0, M3 Max

What issue are you seeing?

Codex Desktop is showing No chats for project sidebar sections even though the local session data still exists.

This happened twice on Apr 28, 2026 HST:

  • 6:49 PM: project sessions were visible. One project was expanded and showed multiple sessions.
  • 7:01-7:03 PM: most project sections changed to No chats while Codex was still open.
  • 11:39 PM: the same No chats state showed up again.

This was not caused by deleting ~/.codex. Local state was still present.

During the first occurrence:

~/.codex/sessions had 137 rollout files
~/.codex/state_5.sqlite had 138 thread records
project threads still existed for multiple projects

I rebuilt ~/.codex/.codex-global-state.json workspace hints from the DB:

backup: /Users/jk/Desktop/codex-global-state-repair-20260428-190419
repaired hints: 131 thread-to-workspace mappings
JSON validated cleanly

After a full Codex restart, the sidebar still did not recover.

By the later recurrence:

sqlite3 ~/.codex/state_5.sqlite "select count(*) from threads;"
# 209

find ~/.codex/sessions -type f -name '*.jsonl' | wc -l
# 206

wc -l ~/.codex/session_index.jsonl
# 38 ~/.codex/session_index.jsonl

Most of the extra thread rows were unattended Symphony worker/retry threads. Many had titles matching full Linear issue prompts rather than normal conversation titles. The 38 rows in session_index.jsonl looked much closer to the expected number of human-visible sessions than the 209 rows in threads.

This seems related to #17304 and #18364, but the trigger looks different: automation-created Symphony/Codex threads are being mixed into the same local thread store as normal Desktop conversations, and project sidebar grouping starts failing once that thread volume builds up.

What steps can reproduce the bug?

I do not have a minimal repro, but this is the pattern that reproduced it for me:

  1. Use Codex Desktop across multiple projects with normal visible project sessions.
  2. Run Symphony/unattended issue workers that create many Codex threads or retries across per-issue workspaces.
  3. Keep using or restart Codex Desktop after those automation-created threads accumulate.
  4. Project sections can start showing No chats, even though the underlying SQLite rows and rollout files still exist.

What is the expected behavior?

Automation-generated threads should not be able to hide or break grouping for human-visible Desktop conversations.

Desktop should probably separate or filter automation/internal threads from the normal project sidebar index, or provide a repair/reindex path when local state gets into this condition.

extent analysis

TL;DR

Separating automation-generated threads from human-visible conversations in the local thread store may resolve the issue of project sections showing No chats in Codex Desktop.

Guidance

  • Investigate the thread volume and composition in ~/.codex/state_5.sqlite and ~/.codex/sessions to understand how automation-created threads are affecting the project sidebar.
  • Consider implementing a filter or separate storage for automation-generated threads to prevent them from interfering with human-visible conversations.
  • Review issues #17304 and #18364 for potential insights into similar problems and their solutions.
  • Attempt to reproduce the bug with a minimal setup to better understand the trigger and develop a targeted fix.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The exact cause of the issue is not certain, but it appears to be related to the accumulation of automation-created threads in the local thread store. Separating these threads from human-visible conversations may resolve the problem, but further investigation is needed to confirm this.

Recommendation

Apply a workaround by separating automation-generated threads from human-visible conversations, as this approach addresses the likely root cause of the issue and may provide a temporary solution until a more permanent fix is developed.

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…

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 Desktop project sidebar hides sessions when Symphony automation threads flood local thread store [1 comments, 2 participants]