Repository navigation
Active Codex Desktop thread is not visible in sidebar despite being unarchived and recently updated #30644
Description
Summary
An active Codex Desktop chat session is not visible or is very hard to find in the left sidebar, even though the underlying thread row exists locally, is not archived, and continues to receive updates.
The confusing part is that the active conversation appears to be a resumed older thread. The sidebar-visible metadata remains anchored to the original first message/title from May, while the current conversation is happening on June 30. The thread also has has_user_event=0, which may be causing the sidebar to omit it depending on the current filtering/indexing logic.
Environment
- macOS Codex Desktop
- bundled CLI:
codex-cli 0.142.4 - Local state DB:
~/.codex/state_5.sqlite - Current active thread id observed via environment:
019e40ad...2390(redacted)
Expected behavior
The currently open/active chat session should be visible in the left sidebar, especially when:
- it is not archived;
- it has recent user/assistant activity;
- its
updated_at/recency_atare current; - the user is actively interacting with it in the main chat surface.
The sidebar title/preview should also reflect recent conversation context enough for the user to identify the thread, or at least the active thread should not disappear from the list.
Actual behavior
The active chat session is not visible in the left sidebar under the current/recent conversation title. The user could not find the session in the sidebar even while actively chatting in it.
Local inspection shows that the thread exists and is not archived, but the title/preview are still from the old first message of a session that began on May 19. Meanwhile updated_at and recency_at are current for June 30.
Evidence
The active session id was available in the environment:
CODEX_THREAD_ID=019e40ad...2390
The corresponding thread row exists in ~/.codex/state_5.sqlite:
id: 019e40ad...2390
archived: 0
has_user_event: 0
updated: 2026-06-30 10:40:11
recency: 2026-06-30 10:39:55
title: <old first message from May 19 remote-control debugging session>
preview: <same old first message from May 19 remote-control debugging session>
Important observations:
archived = 0, so this is not hidden because it is archived.updated_atandrecency_atare current, so the thread is actively receiving activity.has_user_event = 0despite the user actively sending messages in the thread.titleandpreviewremain the initial May 19 message, not the current June 30 conversation context.
A query ordered by recency_at DESC shows the active thread at the top of the DB results, but the user could not find it in the app sidebar:
SELECT id, archived, has_user_event,
datetime(updated_at,'unixepoch','localtime') AS updated,
datetime(recency_at,'unixepoch','localtime') AS recency,
title
FROM threads
ORDER BY recency_at DESC
LIMIT 25;The active row appears first in this query, but still does not appear as expected in the visible sidebar.
Suspected problem
There may be a mismatch between the live active thread and the sidebar's thread-list/indexing criteria. In particular:
- The active thread can have
has_user_event=0even after current user messages. - The sidebar may filter out
has_user_event=0rows. - A resumed/continued older thread can keep stale title/preview metadata, making the current session unfindable even if the row is technically present.
- The active thread's recency metadata updates, but the sidebar may not reconcile or render it consistently.
Impact
Users can lose track of an active conversation from the sidebar. This is especially confusing for long-running debugging sessions because the open chat exists and continues to update, but it cannot be found by its current topic/title in the conversation list.
Requested improvements
- Ensure the currently active thread is always visible in the sidebar when not archived.
- Recompute or update
has_user_eventwhen the user sends messages in a resumed thread. - Refresh sidebar title/preview for resumed threads so they are identifiable by recent context.
- If the sidebar intentionally filters
has_user_event=0, avoid assigning that state to live user-visible conversations with recent user activity.
Activity
github-actions commentedon Jun 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
kimyeongjong commentedon Jun 30, 2026
I reviewed the duplicate candidates from the bot.
Closest related issues:
This issue is likely in the same sidebar/thread-indexing family as #29550/#30385, but I do not think it is an exact duplicate because it adds a concrete macOS active-thread metadata case:
The important distinction is that the currently open, actively used thread is receiving recency updates but still appears to have metadata that can make it absent or unfindable in the sidebar. In particular,
has_user_event=0despite live user messages seems like a useful diagnostic clue for the underlying filter/indexing bug.So I am keeping this open as additional macOS evidence for the same broader issue, unless maintainers prefer consolidating all sidebar thread-index cases into #29550 or #30385.
jonleung commentedon Oct 12, 2026
I'm seeing a closely related problem in the Codex macOS desktop app: while a conversation is open, showing the left sidebar (⌘B) does not reveal or scroll to the currently active chat, so I can't readily tell where that chat is in the thread list. I was looking for a “Reveal Current Chat in Sidebar” action/shortcut, but couldn't find one.
This is especially frustrating when I click a link to a different conversation that was surfaced by a search in another chat. After opening the linked conversation, I want to see exactly where it lives in the sidebar, ideally with the active thread automatically scrolled into view and highlighted.
I haven't checked local thread metadata, so I can't confirm whether this is the same underlying indexing bug or a separate navigation issue. Either way, the active chat should be easy to locate and visibly selected in the sidebar.