hermes-agent/apps/desktop/src
Brian Pasquini 72f522d464 fix(desktop): recover session after sleep/wake gateway restart
When the laptop sleeps and wakes, the WebSocket reconnects but the
gateway's in-memory session table is cleared. The desktop app still
holds the old activeSessionId, so the next prompt.submit call returns
error 4001 ('session not found'), surfaced to the user as:
  'Prompt failed: session not found'

Fix: wrap prompt.submit in a try/catch. On 'session not found', call
session.resume with the durable SQLite session ID (selectedStoredSessionIdRef)
to re-register the session in the gateway, update activeSessionIdRef to
the fresh live session_id, then retry prompt.submit once.

If recovery fails or the error is unrelated, the original error is
re-thrown and surfaces normally.
2026-06-09 03:16:59 -07:00
..
app fix(desktop): recover session after sleep/wake gateway restart 2026-06-09 03:16:59 -07:00
components fix(desktop): render debug-report paste URLs as real clickable links 2026-06-08 21:35:21 -04:00
hooks Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
i18n feat(desktop): assignable themes per profile (#42286) 2026-06-08 17:42:17 +00:00
lib fix(desktop): render debug-report paste URLs as real clickable links 2026-06-08 21:35:21 -04:00
store feat(desktop+gateway): remote-gateway file attachments via file.attach 2026-06-09 00:03:49 -07:00
themes feat(desktop): assignable themes per profile (#42286) 2026-06-08 17:42:17 +00:00
types feat(desktop): remote update overlay sourced from backend 2026-06-08 08:58:26 -07:00
global.d.ts fix(desktop): recover chat after sleep/wake by revalidating a stale remote backend 2026-06-07 17:29:12 -07:00
hermes.test.ts fix(desktop): scope session list to active profile + longer timeout 2026-06-07 02:15:23 -07:00
hermes.ts feat(desktop): remote update overlay sourced from backend 2026-06-08 08:58:26 -07:00
main.tsx feat(desktop): add i18n with Simplified Chinese (zh-Hans) support 2026-06-05 10:32:26 -07:00
styles.css feat(desktop): hover-reveal collapsed sidebars as fixed overlays (#41670) 2026-06-07 22:41:21 -05:00
vite-env.d.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00