Skip to content

Codex Desktop should show current project, cwd, and Git branch in thread UI #28977

Open

Description

@shurrman

Summary

Codex Desktop should show the active project/workspace directory and Git branch prominently in the thread UI, similar to how the CLI can expose project and branch context in its status line.

Problem

In Codex Desktop, it is not obvious which local project/directory a thread is currently operating in, nor which Git branch or worktree is active. Users can ask Codex or open the integrated terminal and run pwd, git rev-parse --show-toplevel, and git branch --show-current, but that is friction for something that is fundamental context for every coding task.

This is especially confusing when:

  • multiple Codex Desktop threads are open across different projects;
  • a user switches between Local and Worktree modes;
  • projectless chats create Codex-managed temporary directories;
  • a user expects parity with the CLI/TUI, where status-line context can be configured;
  • a task involves commits, reviews, deploys, or any operation where the wrong repo/branch is costly.

Requested UX

Add a persistent, visible project context indicator to Codex Desktop threads.

Suggested fields:

  • Project name
  • Current working directory
  • Git repository root, when different from the working directory
  • Current Git branch
  • Local vs Worktree vs Cloud mode
  • Worktree path/name, when applicable
  • Dirty state indicator, if cheap and reliable

Suggested behavior:

  • Show a compact label in the thread header, for example: my-repo · feature/foo · Worktree.
  • Allow clicking/hovering to reveal full paths.
  • Provide quick actions to copy cwd, copy repo root, open terminal, open Finder, or open the project in the configured editor.
  • For non-Git/projectless chats, show that explicitly, for example: Projectless chat · Codex-managed directory.
  • Keep this visible during long-running work and when approval dialogs appear.

Why this matters

This context is safety-critical, not just cosmetic. Codex can edit files, run commands, commit, push, create worktrees, and operate across multiple local projects. Users need continuous awareness of where the agent is operating before approving commands or interpreting results.

The CLI already has configurable status-line concepts such as project and git branch. Desktop should provide an equivalent first-class affordance rather than requiring terminal commands or asking the agent.

Current workaround

Open the integrated terminal and run:

pwd
git rev-parse --show-toplevel
git branch --show-current

or ask Codex to run those commands. This works, but it is not discoverable and does not provide persistent situational awareness.

Activity

  1. added
    enhancement
    app
    on Jun 18, 2026
  2. shurrman commented on Jun 18, 2026

    @shurrman
    Author

    Additional real-world example: this issue was discovered from a projectless Codex Desktop chat. The user did not explicitly open a repository/project, but the thread still had a real writable cwd:

    /Users/aaa/Documents/Codex/2026-06-18/applications-mentioned-by-the-user-appshot

    That makes the problem worse: the UI does not only hide the repo/branch for normal projects, it also hides when the thread is operating inside a Codex-managed generated workspace. In that case the header should explicitly say something like:

    Projectless chat · Codex-managed workspace

    and expose the actual cwd on click/hover. Otherwise users can create files, outputs, or run commands in a directory whose existence and location are invisible from the main UI.

  3. onodanaoto-main commented on Jul 2, 2026

    @onodanaoto-main

    I strongly agree with this request.

    As a Codex Desktop user (Windows), I often find it difficult to visually confirm which project/workspace Codex is currently operating in and what files exist in that workspace. Asking Codex to show the folder structure works as a workaround, but it is slower and does not provide the same confidence as a persistent file explorer.

    A VS Code / Cursor-style file tree or workspace sidebar would make Codex much easier to use as a primary coding tool. In particular, it would help with:

    • Confirming the current project root path
    • Browsing files and folders without leaving Codex
    • Understanding which files Codex created or modified
    • Opening or referencing files directly from the UI
    • Avoiding mistakes when multiple projects or threads are open

    Even if the panel is optional or toggleable, having a reliable, visible workspace explorer would greatly improve usability and user confidence.

    This is closely related to the need for Codex Desktop to show the current project/cwd more clearly as well: #28977

  4. majiag commented on Sep 15, 2026

    @majiag

    This is especially important when several tasks are running concurrently. I often need to know at a glance which project each running task belongs to. A persistent project name badge in the thread header would solve this.

  5. nth-commit commented on Sep 28, 2026

    @nth-commit

    Just some feedback: this completely breaks my workflow. It's the one thing I preferred Codex for > Claude Desktop.

  6. JimsonY commented on Oct 12, 2026

    @JimsonY

    Adding a specific UX request to this feature proposal for Codex Desktop:

    Please make the active Git branch highly visible right next to or immediately above the chat input (composer)—for example, a persistent, prominent ⑂ feature/login badge.

    The exact placement can be flexible, but the branch must be easy to identify at a glance before sending an instruction. A small indicator that is easy to overlook, or a branch name hidden behind a menu, does not adequately prevent mistakes.

    Expected behavior:

    • The active branch is always visible while composing a message, without hovering or opening menus.
    • It reflects the actual checked-out branch for the worktree/repository associated with the current conversation, not the project's default branch or a stale previously selected branch.
    • It updates promptly when switching conversations, projects, worktrees, or Git branches.
    • If the branch cannot be verified, indicate that clearly rather than displaying potentially misleading branch information.
    • A high-contrast Git branch icon plus a readable branch label would be ideal; the indicator does not need to support branch switching.

    Why this matters: When working across several Git branches, it is easy to switch to the wrong context and then ask Codex to edit files. The critical moment to confirm the branch is just before pressing Send. A persistent, conspicuous branch label near the composer would help prevent changes on the wrong branch.

  7. q-crazy commented on Oct 27, 2026

    @q-crazy

    Adding a Windows desktop user's request for a persistent execution-context indicator in every chat.

    I repeatedly could not tell whether a conversation was working in the main project folder or a separate Git worktree. The project name and branch picker were not enough: I had to ask the agent to inspect its working directory and Git state to understand where edits, tests, and commits would happen.

    One confusing example: while starting a chat, selecting a feature branch already checked out in another worktree produces Git's "already used by worktree" error. The picker is trying to switch the main checkout's branch; it is not opening the existing worktree. That distinction is difficult to discover from the frontend.

    Requested minimum UI

    Show these together, persistently, in the chat header or immediately above the composer:

    • Working folder: a readable path or distinguishing folder suffix, with the full absolute path available on hover/click and a copy action.
    • Git branch: the actual checked-out branch for that folder; explicitly show detached HEAD with a short commit hash, or "Not a Git repository" when applicable.
    • Local / Worktree: clearly identify the main project checkout versus a separate worktree. The word "Local" should not be confused with a branch such as main or master.

    For example:

    Local    | example-repo | master         | C:\work\example-repo
    Worktree | example-repo | feature/search | ...\worktrees\abcd\example-repo
    

    Expected behavior

    1. I can identify all three without opening a menu, running a command, or asking the agent, including before sending the next instruction.
    2. The indicator reflects the current chat's actual working folder and its Git state, rather than only the project's default folder or a stale branch selection.
    3. It updates when switching chats or when a chat's location/branch changes through resume, fork, Handoff, or worktree operations.
    4. When a chat remains based in the main folder but runs a command in an additional worktree, distinguish the chat's default folder from that command's execution folder. Do not silently present them as the same location.
    5. The display is informational; reading or copying the current context should not switch branches or move the chat.

    Observed environment: Windows desktop package OpenAI.Codex 26.1013.4894.0.

    The goal is straightforward: users should always know where the current chat is operating without having to ask Codex. This supports the existing feature request rather than opening a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions