Repository navigation
Description
What version of the Codex App are you using?
26.721.3996.0
What platform is your computer?
Windows (x64)
What issue are you seeing?
The Windows taskbar icon continues to show an unread badge (1) even after every visible task has been opened/read.
A read-only inspection of the local persisted app state shows that the badge is backed by a non-empty entry at:
electron-persisted-atom-state.unread-thread-ids-by-host-v1.local
At the time of inspection, this array contained five thread IDs. Cross-checking those IDs against the read-only thread database showed:
- one thread with
threads.archived = 1 - two child/subagent threads whose
thread_spawn_edges.status = "closed" - two ordinary, non-archived threads, including the task that was currently open in the foreground
The two closed child threads are not reachable as normal sidebar tasks, so the user has no UI path to mark them read. The archived thread also remains in the unread set after archival. During verification, the currently open task was newly added to the unread array, increasing it from four entries to five.
The taskbar displays 1 rather than the number of stored IDs, which suggests the Windows badge is being used as a boolean (any unread) while stale/unreachable IDs keep the condition permanently true.
No local state was modified during diagnosis.
What steps can reproduce the bug?
- Use Codex Desktop on Windows and create tasks that spawn subagents/child threads.
- Allow the child threads to finish and reach
closedstatus. - Open/read all tasks visible in the sidebar.
- Archive a task that has previously been considered unread.
- Observe that the Windows taskbar icon continues to show an unread badge of
1. - Restarting or revisiting visible tasks may not clear the badge because closed child-thread IDs and archived-thread IDs remain in
unread-thread-ids-by-host-v1.local.
The problem can also occur for an ordinary task: a task that is currently open may still be present in the persisted unread array.
What is the expected behavior?
- Opening a task should reliably remove its ID from the persisted unread set.
- Archiving a task should remove its ID from the unread set.
- Closed child/subagent threads that are not independently reachable in the UI should not contribute to the application/taskbar unread badge.
- On startup or badge recomputation, the app should prune unread IDs that refer to archived threads, closed child threads, or otherwise unreachable records.
- The Windows taskbar badge should clear immediately when there are no actionable unread tasks.
Additional information
This appears related in theme, but not identical, to automation-specific macOS reports such as #20418 and #26857. This report concerns Windows taskbar state, ordinary tasks, archived tasks, and closed subagent threads rather than unread automation runs.
Potential defensive fix:
- Remove an ID transactionally when a thread is opened/read or archived.
- Do not add independently hidden child threads to the global unread collection, or clear them when the spawn edge becomes
closed. - Before setting the OS badge, reconcile the unread collection against thread metadata and filter
archived = 1, closed child edges, and missing/unreachable threads.
All identifiers, task titles, user paths, and conversation contents have been omitted from this report.
Activity
qjxtony commentedon Jul 24, 2026
Additional persistence evidence from a controlled local cleanup:
unread-thread-ids-by-host-v1.localarray was backed up and cleared. The file remained valid JSON and immediately showed zero unread IDs.ChatGPT.exeandcodex.exeprocess had exited. A pre-cleanup backup again contained those same four IDs; the after-exit cleanup removed all four.This indicates that the first cleanup did not fail because of malformed state or database corruption. Instead, the running app retained an in-memory copy of the stale unread set and wrote it back during shutdown, overwriting the externally cleaned file.
This may be useful when choosing the fix location: startup reconciliation alone would hide the symptom after restart, but stale IDs can also be re-persisted by the shutdown/state-flush path. Ideally the unread set should be reconciled both when thread lifecycle events occur (read/archive/child-close) and before persisted state is flushed or the OS badge is computed.
All paths, thread IDs, titles, and conversation contents remain omitted.
ZyKe01 commentedon Aug 17, 2026
Same issue here on Windows. A completed task was deleted before it was opened, and since then the Codex desktop taskbar icon has permanently shown an unread badge of
1, even though there are no visible unread tasks remaining. This appears to match the stale unread-state behavior described in this issue.carabinshely commentedon Sep 17, 2026
Still reproducible on a current Windows build.
Environment:
OpenAI.Codex_26.911.7940.0_x6426200Updated persistence evidence:
1and there were no visible unread indicators in the app.electron-thread-read-state-v1.unreadByIdentity.<identity>.<host>(rather than the olderelectron-persisted-atom-state.unread-thread-ids-by-host-v1.localkey cited in the original report).1, confirming that Windows is displaying a booleanany unreadindicator rather than the collection size.This strengthens the original diagnosis: the current app still lets hidden/unreachable child-thread IDs participate in the global unread predicate. Reading all UI-visible parents and children is insufficient; each orphaned ID must be individually addressed through an internal route that users cannot access.
Suggested reconciliation remains:
No local usernames, paths, project names, task titles, or thread IDs are included here.
mtk177a commentedon Oct 5, 2026
I’m seeing a similar persistent Windows taskbar badge (“1”), although I haven’t confirmed the underlying cause.
Environment:
The badge has remained since October 2, 2026. Activity shows no apparent unread items, and “Mark all as read” is disabled. After shutting down the computer and starting it again on October 5, the badge was still present.
I would expect the badge to clear when there are no actionable unread items.
The version at onset and the triggering steps are unknown. I have not inspected persisted unread state, so I cannot confirm whether archived tasks or closed subagent threads are involved. The environment check was read-only; no local app state was modified.
simonctlab commentedon Oct 8, 2026
I’m seeing a similar persistent white “1” on the Windows taskbar icon in the unified ChatGPT/Codex desktop app.
Installed MSIX version: 26.1002.7124.0, verified with a read-only package query; package status was Ok.
Observed behavior:
Expected: the badge should clear when there are no actionable unread items, and any remaining item contributing to it should be reachable in the UI.
Additional read-only check: the supported thread-listing tool returned 50 records (28 Codex and 22 ChatGPT), all with isUnread=false. That tool is capped at 50 records without pagination, so this does not establish that every thread is read. The notification check covered the Priority view only.
The original triggering steps and root cause are still unknown. These symptoms resemble this issue, but the checks above do not confirm that archived tasks or closed child threads caused this occurrence.
martinmclee commentedon Oct 9, 2026
I’m seeing the same visible symptom on Windows in the unified ChatGPT/Codex desktop app. The taskbar icon shows
1after app launch even though I marked all visible unread conversations/tasks as read and the visible thread list showed zero unread items. The badge is absent while the app is fully quit, then returns when I reopen it. Restarting Codex, restarting the PC, and Windows Settings > Apps > ChatGPT > Advanced options > Repair did not clear it. I have not verified whether hidden archived or closed subagent IDs are involved; app and Windows build numbers were not captured.