fix: accept whitespace-padded patch markers (#8746)

Trim whitespace when validating '*** Begin Patch'/'*** End Patch'
markers in codex-apply-patch so padded marker lines parse as intended,
and add regression coverage (unit + fixture scenario); this avoids
apply_patch failures when models include extra spacing. Tested with
cargo test -p codex-apply-patch.
This commit is contained in:
Thibault Sottiaux
2026-01-05 17:41:23 -08:00
committed by GitHub
parent b1c93e135b
commit 771f1ca6ab
4 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
*** Begin Patch
*** Update File: file.txt
@@
-one
+two
*** End Patch