Files
hermes-agent/tools
kshitijk4poor a342e6563d fix(file-ops): keep fenced byte-exact reads usable under xtrace
A shell with `set -x` (user rc, BASH_ENV) traces `+ echo <sentinel>` into
the merged output. That line is an extra separator for _split_segments, so
the segment count mismatched and read_file_raw (the V4A/replace write-back
source) failed with "Failed to read file".

_fenced_read now turns xtrace off before the fence; `set +x`'s own trace
goes to the group's discarded stderr.

Co-authored-by: JoaoMarcos44 <joaomarcosdias444@gmail.com>
2026-09-27 02:39:29 +05:30
..