Skip to content

[Regression][macOS Desktop] Orphaned “New task” sidebar entries cannot be archived or deleted #38724

Open

Description

@tanjiening0328-create

Summary

Codex Desktop created 12 phantom sidebar entries titled New task / 新任务. The entries had voice-waveform icons and could not be opened, archived, or deleted through the normal UI.

This appears to be a recurrence or incomplete fix of #32578.

Environment

  • Platform: macOS (Apple Silicon)
  • App: Codex Desktop / ChatGPT Desktop powered by Codex
  • Date reproduced: 2026-08-15
  • Locale: Chinese

The exact app version was not available from the current diagnostic session.

Actual behavior

  1. Multiple sidebar entries named 新任务 appeared in two tightly clustered batches.
  2. The normal thread-list API did not return these entries.
  3. Attempts to archive their thread IDs returned:
    No Codex thread found for threadId: <redacted>. Hosts without a readable match: local
  4. The entries therefore could not be removed through either the UI or the supported archive operation.

Local-state evidence

The 12 IDs were present in:

~/.codex/.codex-global-state.json → projectless-thread-ids

However, there were no matching rollout/session files under:

  • ~/.codex/sessions/
  • ~/.codex/archived_sessions/

This indicates the sidebar index was persisted even though task/rollout creation did not complete.

No private paths, prompts, account identifiers, or raw logs are included here.

Workaround that succeeded

  1. Back up ~/.codex/.codex-global-state.json.
  2. Remove only the 12 stale IDs from projectless-thread-ids.
  3. Validate the resulting JSON and restart/refresh Codex.

After cleanup, the stale-ID intersection count was zero.

Expected behavior

  • A sidebar entry should be committed only after its underlying thread/rollout is durable.
  • If task initialization fails, the pending sidebar entry should be rolled back.
  • Startup reconciliation should automatically prune or quarantine projectless-thread-ids that have no corresponding readable thread/rollout.
  • Archive/delete should handle orphaned sidebar records instead of returning “No Codex thread found.”

Suggested fix

Use transactional/atomic creation across thread persistence and sidebar indexing, plus a reconciliation pass that validates persisted sidebar IDs against the thread store. A safe “remove stale task reference” operation would also let the UI recover without manual JSON editing.

Related: #32578

Activity

  1. added
    bug
    app
    session
    on Aug 15, 2026
  2. github-actions commented on Aug 15, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

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

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions