Skip to content

Windows desktop taskbar badge remains unread due to archived and closed subagent thread IDs #35228

Open

Description

@qjxtony

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?

  1. Use Codex Desktop on Windows and create tasks that spawn subagents/child threads.
  2. Allow the child threads to finish and reach closed status.
  3. Open/read all tasks visible in the sidebar.
  4. Archive a task that has previously been considered unread.
  5. Observe that the Windows taskbar icon continues to show an unread badge of 1.
  6. 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:

  1. Remove an ID transactionally when a thread is opened/read or archived.
  2. Do not add independently hidden child threads to the global unread collection, or clear them when the spawn edge becomes closed.
  3. 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

  1. added
    bug
    app
    windows-os
    subagent
    session
    on Jul 24, 2026
  2. qjxtony commented on Jul 24, 2026

    @qjxtony
    Author

    Additional persistence evidence from a controlled local cleanup:

    1. While Codex Desktop was still running, the persisted unread-thread-ids-by-host-v1.local array was backed up and cleared. The file remained valid JSON and immediately showed zero unread IDs.
    2. After fully exiting and restarting Codex, the same four stale IDs were restored exactly: one archived thread, two closed child/subagent threads, and one already-read ordinary thread.
    3. I then repeated the cleanup only after every ChatGPT.exe and codex.exe process had exited. A pre-cleanup backup again contained those same four IDs; the after-exit cleanup removed all four.
    4. After restarting, those four stale IDs did not return and the taskbar badge cleared.

    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.

  3. ZyKe01 commented on Aug 17, 2026

    @ZyKe01

    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.

  4. carabinshely commented on Sep 17, 2026

    @carabinshely

    Still reproducible on a current Windows build.

    Environment:

    • Codex Desktop MSIX: OpenAI.Codex_26.911.7940.0_x64
    • Windows 11 Pro x64, build 26200

    Updated persistence evidence:

    1. After every visible parent task and every subagent exposed by the UI had been opened/read, the Windows taskbar badge still showed 1 and there were no visible unread indicators in the app.
    2. In this build, the unread state is persisted under electron-thread-read-state-v1.unreadByIdentity.<identity>.<host> (rather than the older electron-persisted-atom-state.unread-thread-ids-by-host-v1.local key cited in the original report).
    3. The persisted collection contained 45 unread thread IDs. None had a top-level entry in the persisted thread-description/sidebar index, so there was no normal sidebar route to acknowledge them.
    4. Directly navigating to one hidden child-thread ID through the app's internal thread navigation removed that ID from the unread collection. Repeating this for hidden IDs reduced the collection from 45 to 15 before the diagnostic run was stopped.
    5. Throughout that reduction the taskbar badge continued to show 1, confirming that Windows is displaying a boolean any unread indicator 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:

    • exclude hidden child/subagent threads from the OS-level unread predicate;
    • clear a child's unread entry when its parent/subagent surface is viewed or when the child completes/closes;
    • prune unread IDs that have no user-reachable route before persistence and before computing the Windows badge.

    No local usernames, paths, project names, task titles, or thread IDs are included here.

  5. mtk177a commented on Oct 5, 2026

    @mtk177a

    I’m seeing a similar persistent Windows taskbar badge (“1”), although I haven’t confirmed the underlying cause.

    Environment:

    • Windows 11 Home 25H2, build 26200.9457, ARM64.
    • About shows 26.930.41038, with a release date of October 4, 2026.
    • The installed OpenAI.Codex package reports 26.930.4958.0 (ARM64).

    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.

  6. simonctlab commented on Oct 8, 2026

    @simonctlab

    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:

    1. Fully restart the app. The taskbar badge remains.
    2. Open the notification bell with Priority selected. It shows no items requiring attention, and “Mark all as read” appears disabled.
    3. Open the full conversation of a newly created diagnostic child task that showed a blue dot. The taskbar badge still remains. The original badge was present before this child task existed.

    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.

  7. martinmclee commented on Oct 9, 2026

    @martinmclee

    I’m seeing the same visible symptom on Windows in the unified ChatGPT/Codex desktop app. The taskbar icon shows 1 after 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsessionsubagentwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions