mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-28 18:19:28 +00:00
redirectPrompt inserts its correction as a second user row just before the live reply, so one turn can own a contiguous run of user rows. Three recovery paths each assumed a turn has exactly one, and all three kept the correction and discarded the prompt that started the turn: - recoverableTail walked back to the nearest user row, so the crash journal never stored the original. - preserveLocalPendingTurnMessages kept only the newest optimistic user row. Widened to the contiguous run — rows separated by an assistant reply are still dropped, which is the stale-post-compression case that rule exists for. - appendLiveSessionProjection had no way to render corrections; it now projects them after the prompt, deduped against the transcript's latest user run. Losing a row also shifted every later role:ordinal pairing in the reconcile, which is why the thread looked like it compacted rather than just missing one bubble. Reproducible on a reconnect and on a dev hot update, which remounts the session cache while the gateway socket survives. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||