Rename patches fail when inside a git worktree

Resolved 💬 1 comment Opened Oct 22, 2025 by shanev Closed Nov 7, 2025

What version of Codex is running?

codex-cli 0.47.0

What subscription do you have?

Pro

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 25.0.0 arm64 arm

What issue are you seeing?

Patches that rename a file gets rejected within a worktree.

What steps can reproduce the bug?

  1. Create a git worktree that lives outside the main repo directory (e.g. git worktree add ../wip main).
  2. Write a prompt that moves a file.
  3. Codex moves it to the main worktree.

What is the expected behavior?

  1. Create a git worktree that lives outside the main repo directory (e.g. git worktree add ../wip main).
  2. Write a prompt that moves a file.
  3. Codex moves it within the wip worktree.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗