TUI status line current-dir shows workspace root, not effective command cwd
What version of Codex CLI is running?
codex-cli 0.129.0
What platform is your computer?
Linux x86_64
What issue are you seeing?
The TUI status line item named current-dir appears to show the session/project/workspace root, not the effective working directory used for shell commands.
In my session, the status line showed ~, because the Codex session root was /home/<user>. However, the agent was running commands with an effective working directory of ~/Documents/ObsidianVault.
That creates two different directory concepts:
- project/workspace root:
~ - effective command working directory:
~/Documents/ObsidianVault
The status-line label current-dir makes this look like the command cwd, but it appears to be the workspace root.
Steps to reproduce
- Start or resume a Codex CLI session with project root set to the home directory.
- Have the agent run commands in a subdirectory using its command
workdir, for example~/Documents/ObsidianVault. - Observe that the status line still displays
~viacurrent-dir. - Ask the agent to run
pwd; it reports the subdirectory.
Expected behavior
Either:
- rename the existing status-line item from
current-dirto something likeworkspace-rootorproject-root, or - add a separate status-line item for the effective command cwd, e.g.
working-dir/command-cwd.
A clear display could be:
project: ~ · cwd: ~/Documents/ObsidianVault
Actual behavior
The status line displays ~, which is the project/workspace root, while commands can be executed in a different effective cwd.
Additional information
This is primarily a UI clarity issue. The command execution itself works; the confusing part is that current-dir sounds like shell cwd but appears to mean workspace root.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗