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
Codex App fails to detect sub-repositories in a workspace folder and orphans conversation context #14218
To aid on the recovery side: these conversations are never really lost, and can be recovered with some finagling to the session jsonl files. See my comment here on how to recover a thread: #12166 (comment). You may have to adjust your remedy depending on the specifics of your situation.
To aid on the recovery side: these conversations are never really lost, and can be recovered with some finagling to the session jsonl files. See my comment here on how to recover a thread: #12166 (comment). You may have to adjust your remedy depending on the specifics of your situation.
Thanks for the suggestion on recovering the session jsonl files.
That helps with recovering, but the issue here is slightly different.
The main problem is that Codex currently fails to detect valid Git repositories located inside a folder (sub-repositories).
In my case, the structure is:
workspace/
repository_a/.git
repository_b/.git
The workspace itself is not a Git repository, but the subfolders are.
Codex does not detect these repositories automatically and instead recommends creating a new repository at the workspace root.
Additionally, removing a repository from Codex removes the conversation context in the UI without warning, which makes it very easy to accidentally orphan active threads.
The jsonl helps recovery, but the expected behavior would be proper sub-repo detection (similar to JetBrains IDE) and preserving context.
Reacted by miraclebakelaser, Benny Chou and 1234567890-
Activity
github-actions commentedon Mar 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
miraclebakelaser commentedon Mar 10, 2026
To aid on the recovery side: these conversations are never really lost, and can be recovered with some finagling to the session jsonl files. See my comment here on how to recover a thread: #12166 (comment). You may have to adjust your remedy depending on the specifics of your situation.
T-1234567890 commentedon Mar 11, 2026
Thanks for the suggestion on recovering the session jsonl files.
That helps with recovering, but the issue here is slightly different.
The main problem is that Codex currently fails to detect valid Git repositories located inside a folder (sub-repositories).
In my case, the structure is:
workspace/
repository_a/.git
repository_b/.git
The workspace itself is not a Git repository, but the subfolders are.
Codex does not detect these repositories automatically and instead recommends creating a new repository at the workspace root.
Additionally, removing a repository from Codex removes the conversation context in the UI without warning, which makes it very easy to accidentally orphan active threads.
The jsonl helps recovery, but the expected behavior would be proper sub-repo detection (similar to JetBrains IDE) and preserving context.