Codex App: Worktree threads not associated with project in Codex App sidebar
Resolved 💬 9 comments Opened Feb 3, 2026 by mdsavarese Closed Feb 5, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
Codex CLI 0.94; Codex App 260202.0859
What subscription do you have?
Pro
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Darwin 25.2.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Codex App
What issue are you seeing?
New local threads are correctly grouped by project in the sidebar. However, new threads created in work trees are not associated with the project in the sidebar (they only show up when switching to chronological view).
What steps can reproduce the bug?
- Create a new project (mdkir test_codex_project; cd test_codex_project; git init; uv init; git add --all; git commit -m "initial")
- Add project to Codex App
- Start new thread in test_codex_project; select "Work in your local project". Prompt with anything ("Write hello_world.json to the repo root"). Thread correctly shows up in sidebar under test_codex_project
- Start new thread in test_codex_project; select "Work in a parallel work tree". Prompt with anything ("Write hello_world_v2.json to the repo root"). Thread appears for a split second in the sidebar under test_codex_project, then disappears.
- Check that thread is visible in chronological list view in sidebar.
What is the expected behavior?
Worktree threads associated with a project should be grouped with other threads associated with that project
Additional information
_No response_
9 Comments
Resolved (for me) as of version 260204.1342 (531); unless others are still having problems, I'll close this issue.
Thanks for confirming the fix.
Is the issue solved?
I am on 26.305.950, and new threads created in worktrees are not associated with the project in the sidebar disappear (they only show up when switching to chronological view).
I'm experiencing the same since the app launch
Version: 26.318.11754 (1100)
I'm also confused. They're called "permanent" work trees, but each time I start a thread, Codex creates a new separate worktree. The threads don't show up under the worktree, but move to the project of the source repo in the sidebar. The threads also don't seem to be aware to which worktree in the sidebar they belong.
Still having this issue.
A conversation created in a separate worktree disappears from the main Threads sidebar after I switch to another thread, but it still remains listed under Settings → Worktrees → Conversations for that same worktree.
Environment
What I see
Expected
The worktree conversation should still appear in the sidebar and be selectable.
Actual
It disappears from the sidebar, even though the app still knows it exists internally.
<img width="296" height="452" alt="Image" src="https://github.com/user-attachments/assets/53f031be-61f8-4778-a189-81d3541df42c" />
<img width="714" height="635" alt="Image" src="https://github.com/user-attachments/assets/b28d9709-3a21-41bc-9f2e-43386de74ebf" />
Seems solved with Version 26.409.20454 🥳
<img width="291" height="56" alt="Image" src="https://github.com/user-attachments/assets/18e111cf-088b-474b-8827-ed4255260a89" />
I?m seeing what appears to be a regression of this issue on current Windows Desktop.
Environment:
26.506.3741.0codex-cli 0.130.0-alpha.5Symptom:
Chronological list.By project.This is not the broader recent-window problem: the missing thread is active, unarchived, and rank 3 by
updated_at_msamong active direct local threads.The local state points to a project-association problem:
C:\Users\<user>\repos\foo\\?\C:\Users\<user>\.codex\worktrees\<id>\foo.codex-global-state.jsonhas nothread-workspace-root-hintsentry for this thread.bar, do have root hints mapping the worktree thread back to the owning project.Git can resolve the worktree owner:
So this looks like the original ?worktree threads not associated with project? bug is still reproducible, or has regressed in a newer code path. More detailed evidence is also relevant to #16811.
Adding a Windows data point/workaround, because this looked project-specific rather than a general failure of all worktrees.
Environment:
0.131.0-alpha.9$CODEX_HOME\worktrees\...Symptoms:
What was different in the affected project:
originand later switchingmastertomaindid not fix the sidebar association.origin, the original folder still reproduced the problem.masteruntil those refs were cleaned up.Workaround that fixed it:
mainas the default branch.git clone https://github.com/...instead of reusing the original local checkout.Possible trigger:
The app may be anchoring project/sidebar identity to the workspace identity captured when the project is first added. If a project starts as local-only or uses a file-path remote, then later gets a GitHub remote/default branch cleanup, existing Codex project metadata may not fully re-key. A fresh GitHub clone creates a clean project identity and avoids the issue.