Codex bug: C-quoted UTF-8 filenames decode wrong, silently breaking patch reversal

dovvnloading · ghdev · 2026-11-28

Issue #64458 on openai/codex reports that codex-git-utils's unescapecstring decodes Git's octal-escaped bytes as individual Unicode code points. With default core.quotePath=true, café.txt is parsed as café.txt (octal 303/251 become U+00C3/U+00A9 instead of jointly decoding to U+00E9).

Functional consequence: applygitpatch calls stagepaths to sync the index before git apply --3way -R; the wrongly decoded path doesn't exist, is silently skipped, and reversal fails with an index mismatch. The reporter includes a repro script, a regression test, and scopes the bug to the Rust Git helper's reverse-patch path (commit 065e18b).

Original post →

More from coding & agent

coding & agent channel →