Codex App fails to detect sub-repositories in a workspace folder and orphans conversation context

Resolved 💬 3 comments Opened Mar 10, 2026 by T-1234567890 Closed Apr 6, 2026

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.305.950 (863)

What subscription do you have?

Plus

What platform is your computer?

_No response_

What issue are you seeing?

Codex App does not correctly handle a workspace folder that contains multiple Git repositories.

In my setup, I have a workspace directory that contains two independent repositories:

workspace/
repository_a/.git
repository_b/.git

The workspace folder itself is NOT a Git repository.

When I move two repositories:

  1. The Codex app does not detect the repositories inside subfolders.
  2. The previous conversation context is lost after removing the folder from the Codex app (the folder isn't deleted).
  3. There is no warning that removing the repository will delete the conversation context.

This caused a loss of several hours of debugging context.

What steps can reproduce the bug?

  1. Open a Git repository in Codex App.
  2. Work with Codex for a while so the conversation builds context.
  3. Remove the repository from Codex.
  4. Add a workspace folder that contains multiple Git repositories (including the first Git repository that has the context).

Original structure:

projects/
repository_a/.git
repository_b/.git

The folder repository_a/ and repository_b/ is moved to another folder in this case.

Structure that loses context and not detecting the Git repositories in sub folders:
projects/
workspace/
repository_a/.git
repository_b/.git

  1. Codex does not detect the sub-repositories and suggests creating a Git repository in the workspace root.
  2. The previous conversation context is lost.

What is the expected behavior?

Expected behavior:

  1. Codex should detect Git repositories inside subfolders.
  2. Codex should not suggest creating a Git repository if sub-repositories already exist.
  3. Codex app should warn the user that removing a repository will delete the conversation and context.
  4. Ideally, Codex should support multi-repository workspaces so related projects can share context.

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗