Files
hermes-agent/apps
kshitijk4poor ee7e0f5172 fix(desktop): a stale-target retry that sends nothing leaves a turn started meanwhile running
When the second deep confirm of a stale-target retry was declined, or
accepted after the edited turn moved, the retry rolled its busy arm back
unconditionally: busy, awaitingResponse, turnLive and the turn clock on
the session, and the foreground flags. If another window or a queued
follow-up had started a turn in the same session while the dialog was
open, that turn was shown idle while it ran. The moved case is exactly
when a newer user turn landed, so it is the likely one.

The edit's own optimistic arm never sets turnLive, and the backend
sets it only for a turn it accepted. When the session shows turnLive by
the time the retry gives up, it now leaves the session's flags and
transcript to that turn.

The new cases start a live turn while the second dialog is open, then
decline or accept a moved plan, and check the busy flags survive. Both
fail without this change.
2026-10-28 12:20:29 +05:30
..