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).
More from coding & agent
- Standard Agent Specification v0.2.0: an open standard for portable, composable agents — adnan_hashmi · 2026-11-29
- Practitioner's tool sweep: Claude Code excellent but dev-oriented, Replit workflow hasn't hit a wall — laughlinrigby · 2026-11-29
- Pre-tool hooks that block coding agents from editing too early — overkill or useful? — Vegetable-Pound6846 · 2026-11-29
- Karpathy let Claude Code run 7 hours: 45,000 lines, 31 datasets, a few skipped states — AryHHAry · 2026-11-29
- Agent wrote 45k lines in 7 hours but skipped states — verification is the bottleneck — AryHHAry · 2026-11-29
- Agent Skills directory tops 1.5M installs, Vercel and Matt Pocock dominate leaderboard — adnan_hashmi · 2026-11-29