Files
hermes-agent/tests
Teknium a7ac3a3a16 fix(gateway): canonical snapshots carry each row's durable row_id
`session.mutate operation=rewind` addresses its target by `target_message_id`
(messages.id), but `local_history` loaded the transcript without row ids, so
no canonical client (Ink /undo, /retry) could name a rewind target from a
snapshot. Load with include_row_ids and project the internal `_row_id` as the
public `row_id` — the TranscriptMessage field Desktop hydration
(`message.row_id ?? message.id`) and the legacy `session.history` already use.
The underscore key never reaches the wire.

Consumers checked: Ink canonicalResult spreads the row (extra key is inert);
Desktop hydration already reads row_id; ACP `_history_replay_updates` and the
classic gateway_chat_view resume print read role/content only; the hosted
`_history` and session.resume projections pass rows through.

test_session_mutation_model compared a branch's resumed messages to its
parent's by full dict equality. Branch copies the rows, so the copies have
their own physical ids; the assertion now compares the logical rows (minus
row_id) and additionally asserts the two id sets are disjoint.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005
2026-10-08 21:04:38 -07:00
..
…