mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-28 18:19:28 +00:00
useRuntimeMessageRepository keeps a WeakMap of converted messages so a settled turn converts once. Building the export with ExportedMessageRepository.fromBranchableArray threw that away again: it maps the whole array through fromThreadMessageLike on every call, so each streamed delta re-normalized the entire settled history and handed the runtime a fresh object for every message. Normalize on the cache miss instead, using the same fallback status fromBranchableArray applies, and build the export literal directly. Settled turns now keep reference identity across deltas, which is what lets the reconcile below tell that only the tail moved. Co-authored-by: Jakub Wolniewicz <frizikk@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||