Files
hermes-agent/tools
Denis Redozubov b1ea9bc47b fix(tools): a sandbox that cannot run commands is 'environment unavailable', not 'File not found' (#44750)
_probe_regular_file returned 'missing' for ANY non-zero exit, so a docker container that
was still starting, paused, or otherwise unable to exec made read_file / read_file_raw /
read_file_bytes report a false 'File not found' — which the model then trusted for the
rest of the session. The probe now echoes a sentinel for a genuinely missing path and a
non-zero exit without either sentinel is reported as an environment failure with a retry
hint; search_files does the same when its existence probe returns neither marker.

Salvaged from #44753 by @dredozubov.
2026-09-05 19:06:57 +05:30
..