codex - 💡(How to fix) Fix Desktop project sidebar shows No chats after Symphony automation creates many threads [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#20187Fetched 2026-04-30 06:32:30
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
2
Author
Timeline (top)
labeled ×3cross-referenced ×2commented ×1subscribed ×1

Root Cause

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

Code Example

~/.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 (From “About Codex” dialog)?

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 hide or break grouping for human-visible Desktop conversations.

Desktop should 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.Automation-generated threads should not hide or break grouping for human-visible Desktop conversations.

Desktop should 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.

Additional information

No response

extent analysis

TL;DR

The issue can be mitigated by filtering out automation-created Symphony/Codex threads from the local thread store to prevent them from interfering with normal Desktop conversations.

Guidance

  • Investigate the session_index.jsonl file to understand why it has fewer rows than the threads table in state_5.sqlite, and consider using its data to repair the project sidebar index.
  • Run a query on the threads table to identify and separate automation-created threads from human-visible conversations, potentially using the thread titles or other distinguishing characteristics.
  • Consider implementing a periodic cleanup or filtering mechanism to remove or hide automation-generated threads from the local thread store to prevent them from causing issues with the project sidebar.
  • Review the related issues #17304 and #18364 to see if their fixes or workarounds can be applied to this scenario.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The root cause of the issue appears to be the mixing of automation-created threads with normal Desktop conversations in the local thread store, but the exact trigger and solution may require further investigation.

Recommendation

Apply a workaround by filtering out automation-created threads from the local thread store, as a permanent fix may require changes to the Codex App's handling of automation-generated threads.

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