core-agent-ide/codex-rs/apply-patch
Shane Vitarana 316352be94
Fix apply_patch rename move path resolution (#5486)
Fixes https://github.com/openai/codex/issues/5485.

Fixed rename hunks so `apply_patch` resolves the destination path using
the verifier’s effective cwd, ensuring patches that run under `cd
<worktree> && apply_patch` stay inside the worktree.

Added a regression test
(`test_apply_patch_resolves_move_path_with_effective_cwd`) that
reproduced the old behavior (dest path resolved in the main repo) and
now passes.

Related to https://github.com/openai/codex/issues/5483.

Co-authored-by: Eric Traut <etraut@openai.com>
2025-11-06 17:02:09 -08:00
..
src Fix apply_patch rename move path resolution (#5486) 2025-11-06 17:02:09 -08:00
tests chore: testing on apply_path (#5557) 2025-10-23 17:00:48 +01:00
apply_patch_tool_instructions.md [apply-patch] Clean up apply-patch tool definitions (#2539) 2025-08-21 20:07:41 -07:00
Cargo.toml Use assert_matches (#4756) 2025-10-05 21:12:31 +00:00