Skip to content

Conversation

@tibo-openai
Copy link
Collaborator

@tibo-openai tibo-openai commented Jan 5, 2026

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.

@tibo-openai tibo-openai changed the title codex-apply-patch: accept whitespace-padded patch markers fix: accept whitespace-padded patch markers Jan 5, 2026
@tibo-openai tibo-openai marked this pull request as ready for review January 5, 2026 23:47
Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add an integration test

@tibo-openai
Copy link
Collaborator Author

Done

@tibo-openai tibo-openai enabled auto-merge (squash) January 6, 2026 01:38
@tibo-openai tibo-openai merged commit 771f1ca into main Jan 6, 2026
26 checks passed
@tibo-openai tibo-openai deleted the tibo/whitespace-padded-patch-markers branch January 6, 2026 01:41
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants