Codex App hides VS Code and terminal buttons when workspace is not a Git repository

Open 💬 0 comments Opened Jun 16, 2026 by ladyrick

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

26.609.71450

What subscription do you have?

Pro 20x

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

In the Codex App, the top-right "Open in VS Code" button and terminal open button disappear when the current workspace directory is not a Git repository.

The underlying local workspace and terminal still work. For example, Codex can run commands in the directory successfully, but the UI buttons are hidden.

Once the same/current directory is a Git repository, those buttons appear again.

What steps can reproduce the bug?

  1. Open Codex App with a local directory that is not a Git repository.
  2. Start a chat/thread in that directory.
  3. Observe the top-right UI actions.
  4. The "Open in VS Code" button and terminal open button are not shown.
  5. Initialize or use a directory that is a Git repository.
  6. Observe that the buttons appear.

What is the expected behavior?

The VS Code and terminal buttons should be shown for any valid local workspace directory, even if it is not a Git repository.

A directory does not need to be a Git repo in order to open it in VS Code or open a terminal there.

Additional information

This was observed in a local workspace at:

/Users/xxx/code/yyyyyy

That directory was not a Git repository, and git remote -v returned:

fatal: not a git repository (or any of the parent directories): .git

However, the Codex thread was still able to run shell commands in that directory successfully.

View original on GitHub ↗