Files
hermes-agent/tests/gateway
teknium1 e3281fe249 fix(state): gateway /retry re-sends a multi-part carrier's stored bytes, not a "\n"-joined view
`rewind_user_turn` called `retryable_user_text` for validation only and returned
`flatten_message_text(...)` (`"\n".join` of the parts) as `live_text`, which the
gateway used as the re-sent prompt: `[{text:"a"},{text:"b"}]` went back to the
model as `"a\nb"` where origin/main sent `"ab"`. When `require_retryable` the
outcome now carries the lossless `"".join` (wire bytes == stored bytes); the
display flattening stays for /undo prefill.

Review follow-up on #109610.
2026-09-13 05:20:26 -07:00
..