Skip to content

Sort by "Last updated" broken in new ChatGPT macOS App #32166

Open

Description

@kingtistel

What version of the Codex App are you using (From “About Codex” dialog)?

26.707.31428

What subscription do you have?

Business

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

After the last (auto-)update that also switched the app from "Codex" to "ChatGPT",
Selecting "Sort by" = "Last updated" does no longer sort projects by last updated!
Image

What steps can reproduce the bug?

Feedback ID: no-active-thread-019f4c39-72f3-7353-869a-afefc3567752

What is the expected behavior?

Selecting "Sort by" = "Last updated" will sort projects by last updated!

Additional information

It used to work perfectly well in previous "Codex" version!

Activity

  1. added
    appIssues related to the Codex desktop app
    on Jul 10, 2026
  2. kingtistel commented on Jul 10, 2026

    @kingtistel
    Author

    After reading #31836
    Using this script as a temporary W/A -- needs to be rerun after significant activity -- very inconvenient!

    state="$HOME/.codex/.codex-global-state.json"
    db="$HOME/.codex/state_5.sqlite"
    tmp="$(mktemp "${TMPDIR:-/tmp}/codex-global-state.XXXXXX")"
    trap 'rm -f "$tmp"' EXIT
    
    cp -n "$state" "$state.before-31836"
    
    recency="$(sqlite3 -json "$db" '
      SELECT cwd, MAX(recency_at_ms) AS recency
      FROM threads
      WHERE archived = 0
      GROUP BY cwd;
    ')"
    
    jq --argjson recency "$recency" '
      ($recency | map({key: .cwd, value: .recency}) | from_entries) as $r
      | .["project-order"] |= (
          to_entries
          | sort_by(-($r[.value] // 0), .key)
          | map(.value)
        )
      | .["electron-persisted-atom-state"]
          ["flat-project-sidebar-preferences-v1"] |=
          ((. // {}) + {
            initialized: true,
            mode: "project",
            projectSortMode: "updated_at"
          })
    ' "$state" > "$tmp" &&
    mv "$tmp" "$state"
    
    trap - EXIT
  3. CamilleHbp commented on Sep 25, 2026

    @CamilleHbp

    Confirmed. God the management on this project is really awful.

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

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions