codex - 💡(How to fix) Fix Recent projects sidebar order does not update when switching active workspace

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

projectOrder = [root, ...existingProjectOrder.filter((entry) => entry !== root)]
RAW_BUFFERClick to expand / collapse

What happened

In the Codex Windows desktop app, the sidebar "Recent projects" grouping does not appear to reorder projects by recent activity after switching/opening a project.

Environment

  • OS: Windows
  • Codex desktop app package: Microsoft Store / WindowsApps
  • Appx package observed locally: OpenAI.Codex_26.506.2212.0_x64__2p2nqsd0c76g0
  • Repository target: openai/codex

Evidence from local inspection

The persisted global state has:

  • sidebar-organize-mode-v1: recent
  • active-workspace-roots: changes when switching the active project
  • project-order: remains in its previous order unless a separate add/remove/drop path updates it

A read-only inspection of the packaged app indicates:

  • The project grouping/sorting code orders sidebar project groups from persisted PROJECT_ORDER / project-order.
  • The main-process handler for electron-set-active-workspace-root updates ACTIVE_WORKSPACE_ROOTS and WORKSPACE_ROOT_OPTIONS, but does not update PROJECT_ORDER.
  • Some other paths do update PROJECT_ORDER, for example adding remote projects or certain workspace-root option flows, so the "recent project" order can become stale depending on how the user switches projects.

Expected behavior

When "Recent projects" is selected, switching/opening a local project should move that project to the top of the recent project list, or the project list should otherwise be derived from actual recent project activity.

Actual behavior

The active workspace changes, but the project list can remain ordered by stale project-order, so "Recent projects" appears not to work.

Possible fix

When handling electron-set-active-workspace-root, also update PROJECT_ORDER using the selected root, roughly:

projectOrder = [root, ...existingProjectOrder.filter((entry) => entry !== root)]

and notify any state listeners needed for the sidebar to refresh.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

When "Recent projects" is selected, switching/opening a local project should move that project to the top of the recent project list, or the project list should otherwise be derived from actual recent project activity.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING