`/resume` picker does not show CWD filter when Codex is launched with `--remote ... --cd`
What version of Codex CLI is running?
codex-cli 0.142.5
What subscription do you have?
Pro
Which model were you using?
N/A
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
remote TUI via App Server, third-party Neovim plugin launching codex --remote ... --cd <cwd>
Codex doctor report
N/A
What issue are you seeing?
When Codex is launched normally from a terminal inside a repo, the /resume picker correctly shows both filter modes:
[Cwd]All
However, when Codex is launched through a remote App Server flow, the active cwd is displayed correctly in the Codex status line, but the /resume picker only shows:
[All]
This happens even though the remote TUI is launched with an explicit cwd using --cd.
What steps can reproduce the bug?
- Start a Codex App Server.
- Launch a remote Codex TUI with an explicit cwd:
``bash``
codex --remote ws://127.0.0.1:<port> --cd /path/to/repo
- Confirm the TUI status line shows
/path/to/repo. - Open
/resume. - Observe that the picker only shows
Filter: [All], notFilter: [Cwd] All.
For comparison:
cd /path/to/repo
codex
Then opening /resume shows the expected [Cwd] filter.
What is the expected behavior?
If Codex is launched with:
codex --remote ws://127.0.0.1:<port> --cd /path/to/repo
then /resume should treat /path/to/repo as the current working directory and show the [Cwd] filter option, the same way plain codex or codex resume does when started from that directory.
Additional information
From reading the current source, the resume picker only shows [Cwd] when its filter_cwd is populated. For remote workspaces, filter_cwd appears to come from app_server.remote_cwd_override().
The main remote TUI session receives remote_cwd_override from --cd, but when /resume is opened from an existing session, Codex starts a separate picker App Server session via start_app_server_for_picker(...). That picker session does not appear to receive the existing remote cwd override, so filter_cwd ends up None, causing the picker to collapse to Filter: [All].
Relevant areas I looked at:
tui/src/resume_picker.rstui/src/app/event_dispatch.rstui/src/lib.rstui/src/app_server_session.rs
The fix may be to propagate the active remote cwd override into the picker App Server session used by /resume.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗