You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Projects Sort By Last updated only sorts tasks within project groups, not projects #31836
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
Open Codex desktop app on macOS Apple Silicon.
Go to Projects.
Open the Sort By control.
Select Last updated.
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.
Reacted by dave (~firmer-rovmyl), yahuo, Iggy, Claudius Ellsel, Opher Shachar, Jerry Xie, Alexander Eichhorn, ckaplan2, Jonathan Laniado, Luca-Y and 44 more
Reacted by Claudius Ellsel, أسامة الطاسان | Osamah Altassan, wzz, jostcampen, Magic8Ball, Denes, Manas Joshi, friediceday, MarcinZaleski, Botao Han and 1 more
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:
Apply the selected sort mode to project groups as well, using each project’s latest/created task timestamp; or
Relabel the control to “Sort tasks by” if it is intentionally scoped only to tasks within projects.
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
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.
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.
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
Use Projects → Organize: By project.
Select Sort by: Last updated.
Update/create the newest task inside project B.
Project B remains below older project A.
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:
Project groups compute a recency value from projectUpdatedAt and the maximum contained task recencyAt.
The groups are sorted descending by that value.
The result is then passed through the persisted project-order list.
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.
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.
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:
Start with several projects and a populated persisted manual project-order.
Select each of Priority, Last updated, and Manual order, and assert the expected project-group order.
Create or update a task in a lower project and assert that Last updated moves that project to the top.
Verify the selected behavior after restart and sign-out/sign-in.
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.
@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.
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.
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.
For users where Projects → Sort by → Last updated has no effect: a persisted project-order list overrides recency sorting.
Method:
Fully quit Codex Desktop.
Back up the global state file (%USERPROFILE%.codex.codex-global-state.json on Windows, ~/.codex/.codex-global-state.json on macOS).
Clear only the top-level project-order array in that file (leave projectSortMode set to "updated_at"), save, and restart.
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.
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.
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.
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.
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.
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?
Activity
github-actions commentedon Jul 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
davetist commentedon Jul 9, 2026
Additional confirmation from a current Codex desktop installation:
26.707.31123 (5042)updated_at, so the menu action itself is not being dropped.project-orderlist 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:
[-]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[/+]yagaC64 commentedon Jul 9, 2026
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
Projectsmode,Sort By -> Last updatedshould 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:
Projectsmode, selectingLast updatedreorders project groups by each project's latest task/thread activity timestamp.project-orderwhen a global sort is selected.Sort tasks byto 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.
yagaC64 commentedon Jul 9, 2026
One important clarification: this appears to be a regression, not just a long-standing UX mismatch.
The reporter observed that
Projects->Sort By->Last updatedpreviously 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.
nachoal commentedon Jul 10, 2026
Confirmed on the newly merged ChatGPT/Codex desktop app, and I was able to isolate the overriding state.
Environment
26.707.31428 (5059)com.openai.codexReproduction
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:
projectUpdatedAtand the maximum contained taskrecencyAt.project-orderlist.project-ordercontains 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-orderthrough 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-orderto 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 toupdated_atand assert that project B moves above project A when B contains the newest task.claell commentedon Jul 10, 2026
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
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0Observed 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-orderappears 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:
project-order.This should be caught before rollout because the failure is visible through ordinary use of the primary Projects navigation.
claell commentedon Jul 10, 2026
@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-orderoverrides 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.claell commentedon Jul 10, 2026
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.
kingtistel commentedon Jul 10, 2026
@claell or quit + run a script + open
#32166 (comment)
alexeichhorn commentedon Jul 11, 2026
Crazy that this regression already happen like 5 times so far in Codex app 😂
jonathanlaniado commentedon Jul 11, 2026
Crazier that this still hasn’t been fixed. The core problem this app is designed to solve cannot be addressed while this bug exists.
31 remaining items
kaancat commentedon Aug 12, 2026
It's so incredibly annoying and bad for productivity
SergMedin commentedon Aug 16, 2026
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.
naipi11 commentedon Aug 18, 2026
For users where Projects → Sort by → Last updated has no effect: a persisted project-order list overrides recency sorting.
Method:
%USERPROFILE%.codex.codex-global-state.jsonon Windows,~/.codex/.codex-global-state.jsonon macOS).project-orderarray in that file (leaveprojectSortModeset to"updated_at"), save, and restart.Evidence: confirmed on Windows (Codex 26.721.4979.0) and on macOS; the global state file exists locally with the
project-orderkey, 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.
chrisherold commentedon Aug 19, 2026
One additional bundle-level finding for macOS build
6744(26.814.41957):The renderer contains a function named
Jnnthat sorts project groups by their newest contained task. This function is active through a separate selector namedpHs, 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
LSdoes not invokeJnn. It readsprojectSortMode, separates pinned and unpinned groups, and then passes the unpinned groups and persistedPROJECT_ORDERthroughvon.vonis only a thin wrapper aroundsin:sinreconciles 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:
Neither
vonnorsinchecksprojectSortModeor task timestamps. After applying that static group order,LSusesprojectSortModeonly 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:
26.814.41957(build6744)app.asarSHA-256:881d21270e41ea50a6de7835a3dda3516a001354d034933bb4a97677f3e0c479webview/assets/app-initial-BnNjcVmf.jsJnndefinition: approximately byte2,335,156sindefinition: approximately byte2,349,230LSselector: approximately byte2,380,916JnnfrompHs: approximately byte10,022,368The minified names and offsets are specific to this build.
ethanreedy-DC commentedon Aug 29, 2026
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.
namipsg commentedon Aug 29, 2026
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.
kaancat commentedon Sep 6, 2026
Is this ever going to get fixed or is it just not a feature anymore?
zj9495 commentedon Sep 16, 2026
plz fix it!!!!!
Magic8Ballin commentedon Sep 26, 2026
The new update fixed this for me, all of my chats and project are sorting correctly now. I'm using Version 26.924.20706
ethanreedy-DC commentedon Sep 26, 2026
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.
albertosantini commentedon Sep 26, 2026
Basically there is another view, Projects, where it is respected that feature, but it is something different from the order in the sidebar.
kingtistel commentedon Sep 26, 2026
I'm on macOS and updated to that same latest version -- but still not fixed for me.
JSchoreels commentedon Oct 12, 2026
Still the same issue on Version 26.1007.30912
claell commentedon Oct 15, 2026
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?
jaded33 commentedon Nov 5, 2026
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.