Files
hermes-agent/apps
liuhao1024 d029575407 fix(desktop): sort survivors by last_active in mergeSessionPage to prevent stale sidebar order
When multiple sessions are active/settled simultaneously, survivors
(sessions the server omitted from the fresh page) were prepended as a
block in their old relative order from the previous $sessions array.
This caused recently-interacted sessions to appear below older ones.

Now survivors are sorted by last_active descending and merged into the
incoming array at the correct position using a two-pointer merge,
so the sidebar always reflects true recency.

Fixes #47203
2026-08-14 20:24:51 -07:00
..