Files
hermes-agent/tests/tools
Teknium b0f46378c9
Some checks failed
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Has been cancelled
auto-fix lint issues & formatting / Apply patch (push) Has been cancelled
Skills Index Freshness Check / check-freshness (push) Has been cancelled
Skills Index Freshness Check / check-catalog-cors (push) Has been cancelled
Docs Search Monitor / probe (push) Has been cancelled
fix(patch): absorbed whitespace never turns new_string's C:\reports into a CR
The \t/\r unescape for new_string fired whenever the matched region held a
real tab or CR. The wrapped-text strategy matches across CRLF line endings and
indented continuation lines, so replacing a hard-wrapped CRLF sentence with
`Use C:\reports` wrote `Use C:` + line break + `eports` (main refused the
edit). The same happened on main for any LF old_string matched against CRLF
lines (line_trimmed and siblings).

Escape drift hits both strings alike, so convert a literal only when old_string
carries the char too (the same literal, a real tab, or a lone CR); a CR inside
a CRLF line ending is never evidence. The #33733 tab and literal-\r drift
cases keep converting.
2026-11-29 00:17:00 -08:00
..