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-09 11:29:54 +00:00
committed by pap
parent 24f9fabbf5
commit a54bd8e440
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,6 @@
*** Begin Patch
*** Update File: file.txt
@@
-one
+two
*** End Patch