Files
hermes-agent/apps
Teknium fc6445ede5 fix(desktop): the launch restore never closes a chat the person opened
With launch mode "last used" on a gateway other than the one main opens
first, the window paints on This device and the launch restore
(restorePreferredConnection -> restoreConnection(preferredId)) dials the
saved gateway in the background. That restore does not yield (only the
startup profile re-home does, #147711), so a stored chat the person opened
right as the window painted was closed when the restore landed seconds
later and the window jumped to a blank draft on the other gateway.

openSession, the one door every surface opens a chat through, now bumps a
user-open revision (store/session-open-intent). The launch restores carry
the revision captured when boot began and give way once it moves. Route
effects that select a chat on their own (the cold-start route resume,
runtime recovery) never bump it, so those restores still land as on main.
2026-11-02 07:31:32 -08:00
..