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?

  1. create a new worktree
  2. codex do something
  3. create another
  4. resume, found nothing

What is the expected behavior?

it can share session

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 6 months ago

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 --all to show all sessions.

asukaminato0721 · 6 months ago

thanks for resume --all