core-agent-ide/codex-rs/apply-patch/src
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
..
lib.rs Fix apply_patch rename move path resolution (#5486) 2025-11-06 17:02:09 -08:00
main.rs feat: use the arg0 trick with apply_patch (#2646) 2025-08-24 14:35:51 -07:00
parser.rs chore: enable clippy::redundant_clone (#3489) 2025-09-11 11:59:37 -07:00
seek_sequence.rs chore: clippy on redundant closure (#4058) 2025-09-22 19:30:16 +00:00
standalone_executable.rs feat: use the arg0 trick with apply_patch (#2646) 2025-08-24 14:35:51 -07:00