hermes-agent/apps/desktop/src/store
brooklyn! 395ed91891
fix(desktop): keep a just-finished session visible after switching away (#42285)
A brand-new session's first turn persists to the SessionDB a beat after
the gateway emits message.complete, so a refresh fired in that window gets
a listSessions(min_messages=1) page that omits the new row. sessionsToKeep()
already shields the *active* chat from this race, but a session you started
and then navigated away from is — at the next refresh — neither working,
pinned, nor active, so mergeSessionPage() evicts it. Nothing re-fetches
afterward, so it stays gone until the app restarts.

Track sessions whose turn just settled (a real working->idle transition) in
a short, auto-expiring grace window and add them to the merge keep-set. This
bridges the persist race for non-active chats without resurrecting deleted
rows (mergeSessionPage only revives rows still in the in-memory list, which
optimistic delete/archive already drop).

Repro: start a new chat, send a message, then click another session before
the reply lands — the new session vanishes from the sidebar.
2026-06-08 12:32:27 -05:00
..
activity.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
boot.ts feat(desktop): persist i18n language in config 2026-06-05 10:32:26 -07:00
clarify.test.ts fix(desktop): surface background-session clarify prompts instead of hanging 2026-06-03 21:07:33 -05:00
clarify.ts fix(desktop): surface background-session clarify prompts instead of hanging 2026-06-03 21:07:33 -05:00
command-palette.ts feat(desktop): global Cmd+K palette + UI consistency overhaul 2026-06-03 23:45:45 -05:00
composer-input-history.test.ts feat(desktop): arrow up/down to navigate previous user messages 2026-06-05 20:32:29 -05:00
composer-input-history.ts feat(desktop): integrate arrow history with the message queue 2026-06-05 20:33:53 -05:00
composer-queue.test.ts fix(desktop): reliable composer message queue (#40221) 2026-06-05 20:21:41 -05:00
composer-queue.ts fix(desktop): reliable composer message queue (#40221) 2026-06-05 20:21:41 -05:00
composer.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
cron.ts fix(desktop): cron overlay mutations sync the sidebar instantly 2026-06-06 16:47:46 -05:00
gateway.ts feat(desktop): concurrent multi-profile gateway sockets 2026-06-04 20:44:19 -05:00
haptics.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
keybinds.ts feat(desktop): rebindable keyboard shortcuts panel 2026-06-06 11:41:57 -05:00
layout.ts Persist desktop sidebar drag order 2026-06-07 23:44:04 -07:00
model-visibility.test.ts fix(desktop): show newly configured model providers (#41545) 2026-06-08 01:39:37 -07:00
model-visibility.ts fix(desktop): show newly configured model providers (#41545) 2026-06-08 01:39:37 -07:00
notifications.ts feat(desktop): persist i18n language in config 2026-06-05 10:32:26 -07:00
onboarding.test.ts Clear stale desktop onboarding errors (#38844) 2026-06-04 22:59:55 -05:00
onboarding.ts feat(desktop): unified overlay design system, BrandMark & onboarding redesign (#40708) 2026-06-06 16:32:47 -05:00
panes.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
panes.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
preview.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
preview.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
profile.ts feat(desktop): rebindable keyboard shortcuts panel 2026-06-06 11:41:57 -05:00
prompts.test.ts feat(desktop): concurrent multi-profile gateway sockets 2026-06-04 20:44:19 -05:00
prompts.ts feat(desktop): concurrent multi-profile gateway sockets 2026-06-04 20:44:19 -05:00
session.test.ts fix(desktop): keep a just-finished session visible after switching away (#42285) 2026-06-08 12:32:27 -05:00
session.ts fix(desktop): keep a just-finished session visible after switching away (#42285) 2026-06-08 12:32:27 -05:00
subagents.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
subagents.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
thread-scroll.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
tool-diffs.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
tool-view.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
updates.test.ts fix(desktop): close the backend update overlay on success; error on no-return 2026-06-08 08:58:26 -07:00
updates.ts i18n(desktop): translate backend update apply status messages 2026-06-08 08:58:26 -07:00
voice-playback.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00