different worktree can't share the same session
Resolved 💬 2 comments Opened Feb 26, 2026 by asukaminato0721 Closed Feb 27, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.104.0
What subscription do you have?
pro
Which model were you using?
gpt-5.2-codex high
What platform is your computer?
Linux 6.12.73-1-lts x86_64 unknown
What terminal emulator and version are you using (if applicable)?
Konsole
What issue are you seeing?
I use git worktree, but I notice the session in one worktree can't be resume at another.
What steps can reproduce the bug?
- create a new worktree
- codex do something
- create another
- resume, found nothing
What is the expected behavior?
it can share session
Additional information
_No response_
2 Comments
Resume is normally scoped to the cwd where it initially ran. We don't generally recommend resuming in a different cwd because the context will contain references to the older cwd, but if you want to attempt this, you can use
resume --allto show all sessions.thanks for
resume --all