Mobile remote: group Git worktree sessions by repository instead of exact cwd
What variant of Codex are you using?
CLI standalone remote-control + ChatGPT mobile Codex remote
What feature would you like to see?
When using Codex CLI remote-control with multiple Git worktrees from the same repository, ChatGPT mobile currently presents each thread working directory as its own Project.
For worktree-heavy workflows, this makes one repository appear as many mobile projects. It would be easier to navigate if mobile remote grouped sessions by Git repository identity, such as Git common-dir, repository root, or origin URL, and then showed individual worktrees/branches/threads underneath that repository.
Example:
Current mobile grouping:
- main
- fix-login
- update-deps
- experiment-a
Preferred grouping:
- my-repo
- main
- fix-login
- update-deps
- experiment-a
The key behavior I’m asking for is not to change the execution cwd. Each thread should still run in its original worktree. This is only about project/list organization in mobile remote.
Additional information
Observed with Codex CLI standalone 0.143.0 using remote-control from macOS, connected from ChatGPT mobile on iOS.
The remote-control workflow itself works well: mobile can connect to the host, continue the same thread, and sync with a fresh terminal session. The rough edge is that the mobile project list appears to group by exact thread cwd, which fragments a single Git repository into many top-level Projects when the user works from multiple Git worktrees.
A repository-aware grouping could use signals such as:
git rev-parse --git-common-dirgit rev-parse --show-toplevel- remote origin URL
- branch/worktree name as the child label
Related issues I found before filing:
- #30570: Expose worktree-aware thread environment APIs in Codex SDK/app-server
- #29698: Codex App groups chats under the topmost saved project when multiple saved projects share a repo
- #29459: iOS Codex can view existing worktree threads but cannot create or select permanent worktree threads
- #22925: Codex Mobile remote new thread cannot choose worktree or starting branch
- #23418: Mobile remote-created worktree thread is not associated with project in Codex Desktop sidebar
I do not think those are the same request. This one is specifically about mobile remote project/list grouping for existing CLI remote-control sessions across multiple Git worktrees.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗