Skip to content

Projects Sort By Last updated only sorts tasks within project groups, not projects #31836

Open

Description

@yagaC64

Summary

In the Codex desktop app on macOS/Apple Silicon, the Projects view Sort By control appears to accept Last updated, but selecting it does not change the project ordering.

Steps to reproduce

  1. Open Codex desktop app on macOS Apple Silicon.
  2. Go to Projects.
  3. Open the Sort By control.
  4. Select Last updated.
  5. Observe the project list order.

Expected behavior

Projects should reorder by their most recently updated project/thread/activity timestamp, with the most recently updated projects moving to the top or otherwise clearly changing according to the selected sort direction.

Actual behavior

Selecting Last updated appears to do nothing. The visible project order remains unchanged.

Environment

  • Device: MacBook Pro, Apple M1 Pro
  • Architecture: arm64
  • macOS: 26.5.2 (25F84)
  • Codex desktop build observed from running helper processes: 149.0.7827.197

Notes

I found related issues around project/sidebar ordering and recent history, but did not find an issue specifically for Projects -> Sort By -> Last updated being a no-op on macOS Apple Silicon.

Activity

  1. added
    bug
    app
    on Jul 9, 2026
  2. github-actions commented on Jul 9, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. davetist commented on Jul 9, 2026

    @davetist

    Additional confirmation from a current Codex desktop installation:

    • Codex app version: 26.707.31123 (5042)
    • The selected value is persisted correctly as updated_at, so the menu action itself is not being dropped.
    • Inspecting the shipped renderer bundle shows that the selected sort mode is passed to the task-sorting function for threads inside each project.
    • Project groups are constructed separately using the persisted project-order list before that task sorting occurs.

    So in Projects mode, “Last updated” changes task ordering within each project but does not change the order of the project groups themselves. When projects are collapsed—or contain only one visible task—the control appears to be a complete no-op.

    This looks like an implementation/UX mismatch rather than corrupted local state. Possible fixes:

    1. Apply the selected sort mode to project groups as well, using each project’s latest/created task timestamp; or
    2. Relabel the control to “Sort tasks by” if it is intentionally scoped only to tasks within projects.
  4. changed the title [-]Mac M1: Projects Sort By Last updated does not change project order[/-] [+]Projects Sort By Last updated only sorts tasks within project groups, not projects[/+] on Jul 9, 2026
  5. yagaC64 commented on Jul 9, 2026

    @yagaC64
    Author

    Thanks for digging into this. That matches the user-visible behavior I was seeing.

    From a UX standpoint, I think option 1 is the expected behavior: in Projects mode, Sort By -> Last updated should sort the project groups themselves by the latest relevant timestamp among their visible/contained tasks, not only sort tasks inside each already-ordered group.

    Suggested acceptance criteria:

    • In Projects mode, selecting Last updated reorders project groups by each project's latest task/thread activity timestamp.
    • Projects with one visible task or collapsed task lists still visibly move when their latest activity differs.
    • Task ordering within each project may continue to use the selected sort mode, but group ordering should not remain pinned to persisted project-order when a global sort is selected.
    • If product intent is actually task-only sorting, then the control should be relabeled to Sort tasks by to avoid implying project group sorting.

    My preference is the first path because the control is exposed at the Projects-view level, so users reasonably expect it to affect project groups. Otherwise it reads as a no-op in the common collapsed/one-task case.

  6. yagaC64 commented on Jul 9, 2026

    @yagaC64
    Author

    One important clarification: this appears to be a regression, not just a long-standing UX mismatch.

    The reporter observed that Projects -> Sort By -> Last updated previously did reorder project groups by latest activity. That behavior was working before and appears to have stopped today.

    So the expected behavior is not only inferred from the control label; it is also the behavior users had already been relying on.

  7. nachoal commented on Jul 10, 2026

    @nachoal

    Confirmed on the newly merged ChatGPT/Codex desktop app, and I was able to isolate the overriding state.

    Environment

    • macOS
    • ChatGPT desktop 26.707.31428 (5059)
    • Bundle identifier: com.openai.codex
    • Reproduced on 2026-07-09, immediately after the ChatGPT/Codex desktop merge

    Reproduction

    1. Use Projects → Organize: By project.
    2. Select Sort by: Last updated.
    3. Update/create the newest task inside project B.
    4. Project B remains below older project A.
    5. Quit and reopen the app; the fixed project order remains.

    The selected sort mode itself persists as updated_at, so this is not the same failure as #30778, where the selection reverts to manual order.

    Root-cause evidence

    Inspecting the shipped renderer shows this sequence:

    1. Project groups compute a recency value from projectUpdatedAt and the maximum contained task recencyAt.
    2. The groups are sorted descending by that value.
    3. The result is then passed through the persisted project-order list.
    4. Because project-order contains every active project ID, that stored order overrides the recency sort completely.

    The selected Last updated mode is also passed to the task sorter, which explains why tasks can reorder within a project while the project headings remain fixed.

    As a diagnostic proof, I replaced project-order through the app's own global-state API with one non-matching sentinel and invalidated the corresponding query cache. The project headings immediately reordered by their latest contained task activity, with the newest project moving to the top. That confirms the persisted manual project order is the overriding layer.

    Clearing project-order to an empty array is not a durable workaround because the app repopulates it with all active project IDs on restart.

    This is a regression from the prior Codex desktop behavior, where Last updated also reordered the project groups. A regression test should cover a populated persisted project-order, then switch to updated_at and assert that project B moves above project A when B contains the newest task.

  8. claell commented on Jul 10, 2026

    @claell

    Confirming this as a cross-platform regression in the newly merged ChatGPT/Codex desktop experience. This comment concerns the post-merge app; the older issues below are included only as regression history.

    Additional environments

    • Windows: installed Codex package OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0
    • macOS: reproduced on a separate machine with a separate account
    • The two accounts also use different account/workspace configurations, which makes a machine-specific cache problem or a single-account rollout variant unlikely.

    Observed behavior

    The Projects menu now offers three ordering modes: Priority, Last updated, and Manual order. Switching among all three produces no visible change in the project-group order. The list remained in the same unintuitive order immediately after the product merge/update.

    On macOS, I also created new chats/tasks inside a project that was lower in the list. Even with Last updated selected, activity in that project did not move it toward the top.

    This matches the implementation evidence already documented in this issue: a populated persisted project-order appears to override the selected global sort mode. It also connects directly to two older reports:

    The recurrence after the ChatGPT/Codex merge strongly suggests a regression rather than isolated local state. It is concerning that a project-navigation problem that was previously reported—and, in the closely related case, apparently fixed—could ship again in a major product merge.

    User impact

    For accounts with many projects, this makes recent work difficult to find and forces repeated scrolling through an order that the controls cannot change. It is also poor onboarding: a new user is presented with three explicit sort choices, but every choice appears broken.

    Please treat this as a release regression and add end-to-end coverage for the actual project headings, not only the tasks inside each heading. At minimum, a regression test should:

    1. Start with several projects and a populated persisted manual project-order.
    2. Select each of Priority, Last updated, and Manual order, and assert the expected project-group order.
    3. Create or update a task in a lower project and assert that Last updated moves that project to the top.
    4. Verify the selected behavior after restart and sign-out/sign-in.
    5. Exercise the upgrade path on both Windows and macOS.

    This should be caught before rollout because the failure is visible through ordinary use of the primary Projects navigation.

  9. claell commented on Jul 10, 2026

    @claell

    @etraut-openai, could you please route this post-merge regression to the current Projects/sidebar owner? You publicly triaged #22487 as an app regression in May; that report was later closed as fixed, but the same core behavior—recently active projects not moving to the top—has returned in the merged 26.707 app, now alongside three ordering controls that appear ineffective.

    The cross-platform evidence and implementation analysis above make this more than a preference-persistence problem. A populated manual project-order overrides Last updated, so ordinary activity cannot move a project to the top. This is visible on both Windows and macOS immediately after the merge and needs an actual project-group sorting regression test.

  10. claell commented on Jul 10, 2026

    @claell

    What I found is that some projects actually can change to the top. Incidentally, those were the projects already being in the first one or two positions, whereas other projects much further down did not go to the top. And even though one selected sorting by latest update. The manual sorting is working and I can move entries around, which is maybe a temporary fix for now to just manually keep track of this, but this is still not really good because important things can get buried under a lot of other old projects.

  11. kingtistel commented on Jul 10, 2026

    @kingtistel

    @claell or quit + run a script + open
    #32166 (comment)

  12. alexeichhorn commented on Jul 11, 2026

    @alexeichhorn

    Crazy that this regression already happen like 5 times so far in Codex app 😂

  13. jonathanlaniado commented on Jul 11, 2026

    @jonathanlaniado

    Crazier that this still hasn’t been fixed. The core problem this app is designed to solve cannot be addressed while this bug exists.

  14. 31 remaining items

  15. kaancat commented on Aug 12, 2026

    @kaancat

    It's so incredibly annoying and bad for productivity

  16. SergMedin commented on Aug 16, 2026

    @SergMedin

    I traced this on macOS in Codex 26.810.52044 (build 6662). My state had 28 local projects but only 27 IDs in project-order. The project missing from that list was always placed first, even though it had not been used for months. The bundle code first sorts project groups by recency, then applies project-order, which overrides the result and prepends IDs missing from the saved list. After fully quitting Codex and clearing project-order in both ~/.codex/.codex-global-state.json and its .bak file, the sidebar returned to the correct recent-first order. A likely fix is to skip project-order for recency sorting, or only apply it in manual mode.

  17. naipi11 commented on Aug 18, 2026

    @naipi11

    For users where Projects → Sort by → Last updated has no effect: a persisted project-order list overrides recency sorting.

    Method:

    1. Fully quit Codex Desktop.
    2. Back up the global state file (%USERPROFILE%.codex.codex-global-state.json on Windows, ~/.codex/.codex-global-state.json on macOS).
    3. Clear only the top-level project-order array in that file (leave projectSortMode set to "updated_at"), save, and restart.
    4. Project groups now follow Last updated — until you manually reorder projects again, which repopulates the list.

    Evidence: confirmed on Windows (Codex 26.721.4979.0) and on macOS; the global state file exists locally with the project-order key, and renderer analysis shows the persisted order is applied after the recency sort. Note: a separate task-level ordering layer inside expanded project groups may still be affected.

    Independent community workaround; not an official OpenAI fix.

  18. chrisherold commented on Aug 19, 2026

    @chrisherold

    One additional bundle-level finding for macOS build 6744 (26.814.41957):

    The renderer contains a function named Jnn that sorts project groups by their newest contained task. This function is active through a separate selector named pHs, which builds the recency-sorted project list used by the composer’s “Work in a project” command and other project pickers.

    The active desktop-sidebar selector LS does not invoke Jnn. It reads projectSortMode, separates pinned and unpinned groups, and then passes the unpinned groups and persisted PROJECT_ORDER through von.

    von is only a thin wrapper around sin:

    function applyProjectOrder({ groups, projectOrder }) {
      return sortGroupsByPersistedOrder(groups, projectOrder);
    }

    sin reconciles the persisted order with the currently active projects, builds a project-ID rank map, and sorts the groups by that rank. Projects missing from the persisted array are placed first in their existing discovery/input order, followed by the persisted project IDs that still exist.

    Equivalent unminified structure:

    function sortGroupsByPersistedOrder(groups, projectOrder) {
      const activeProjectIds = new Set(
        groups.map(group => group.projectId)
      );
    
      const persistedProjectIds = (projectOrder ?? []).filter(
        projectId => activeProjectIds.has(projectId)
      );
    
      const persistedProjectIdSet = new Set(persistedProjectIds);
    
      const effectiveOrder = [
        ...groups
          .map(group => group.projectId)
          .filter(projectId => !persistedProjectIdSet.has(projectId)),
        ...persistedProjectIds,
      ];
    
      const rankByProjectId = new Map(
        effectiveOrder.map((projectId, index) => [projectId, index])
      );
    
      return [...groups].sort(
        (a, b) =>
          (rankByProjectId.get(a.projectId) ?? Number.MAX_SAFE_INTEGER) -
          (rankByProjectId.get(b.projectId) ?? Number.MAX_SAFE_INTEGER)
      );
    }

    Neither von nor sin checks projectSortMode or task timestamps. After applying that static group order, LS uses projectSortMode only when sorting the child chats inside each project.

    This means the app already ships and uses the desired project-recency sorter, but the active sidebar path uses the persisted-order implementation instead. That points to a disconnected integration or regression during the sidebar refactor rather than a missing sorting implementation.

    Build evidence:

    • App: 26.814.41957 (build 6744)
    • app.asar SHA-256: 881d21270e41ea50a6de7835a3dda3516a001354d034933bb4a97677f3e0c479
    • Renderer: webview/assets/app-initial-BnNjcVmf.js
    • Jnn definition: approximately byte 2,335,156
    • sin definition: approximately byte 2,349,230
    • Active LS selector: approximately byte 2,380,916
    • The invocation of Jnn from pHs: approximately byte 10,022,368

    The minified names and offsets are specific to this build.

  19. ethanreedy-DC commented on Aug 29, 2026

    @ethanreedy-DC

    Please fix this. It is a real annoyance -- more than a paper-cut. I'm still seeing this behavior in Windows Version 26.825.41651

    I even tried editing the JSON file and the projects reordered, but not by last updated.

  20. namipsg commented on Aug 29, 2026

    @namipsg

    I found a partial workaround by using the Notifications section instead of sorting projects by date, and it seems to be working fine so far.

    it's next to the search icon.

    Image
  21. kaancat commented on Sep 6, 2026

    @kaancat

    Is this ever going to get fixed or is it just not a feature anymore?

  22. zj9495 commented on Sep 16, 2026

    @zj9495

    plz fix it!!!!!

  23. Magic8Ballin commented on Sep 26, 2026

    @Magic8Ballin

    The new update fixed this for me, all of my chats and project are sorting correctly now. I'm using Version 26.924.20706

  24. ethanreedy-DC commented on Sep 26, 2026

    @ethanreedy-DC

    The new update fixed this for me, all of my chats and project are sorting correctly now. I'm using Version 26.924.20706

    I just updated the Windows app to Version 26.924.22138 and it still doesn't sort projects by most recent. The top four projects in my list are all ones I haven't touched in a month, though I probably will use them again, so I'm not going to archive them.

  25. albertosantini commented on Sep 26, 2026

    @albertosantini

    Basically there is another view, Projects, where it is respected that feature, but it is something different from the order in the sidebar.

    Image
  26. kingtistel commented on Sep 26, 2026

    @kingtistel

    The new update fixed this for me, all of my chats and project are sorting correctly now. I'm using Version 26.924.20706

    I'm on macOS and updated to that same latest version -- but still not fixed for me.

  27. JSchoreels commented on Oct 12, 2026

    @JSchoreels

    Still the same issue on Version 26.1007.30912

  28. claell commented on Oct 15, 2026

    @claell

    Still encountering this on October 15: recently active projects do not reliably move to the top of the sidebar when Last updated is selected.

    For comparison, after a recent Claude Code update, I now see the expected behavior there: recently used projects move to the top automatically. That makes returning to active work straightforward and illustrates the interaction I am asking for here.

    The requested behavior concerns the project headings in the sidebar, including collapsed projects. Creating or continuing a chat in a project should move that project above projects with older activity when Last updated is selected. Manual ordering should remain available through its own mode.

    This remains frustrating with many projects because active work gets buried and requires repeated scrolling or manual rearrangement. Is there an update on a fix for the sidebar ordering specifically?

  29. jaded33 commented on Nov 5, 2026

    @jaded33

    Still same issue in Version 26.1029.61003 on November 5th macOS apple silicone. Has been like this for months and is very annoying!

    The iOS app functions as expected with projects moving to the top when a thread in them is recently updated.

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

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions