hermes-agent/apps/desktop/src
brooklyn! ca8c78e588
fix(desktop): heal stale runtime-id cache + model on profile switch (#39819)
Two switch-time regressions from the multi-profile rail work:

- "Session not found" (4007): pruneSecondaryGateways idle-reaps a
  non-active profile's backend; switching back respawns a *fresh*
  backend that mints new runtime ids, but runtimeIdByStoredSessionId is
  never pruned. resumeSession's cache fast-path then makes a dead runtime
  id active and returns, so session.usage + the next prompt 404. Probe
  the cached id; on rejection drop the stale mapping and fall through to
  a full resume that rebinds a live id.

- "Forgets the LLM setting": $currentModel is a nanostore set only by
  refreshCurrentModel (gatewayState->open, etc). A swap fires
  invalidateQueries() (react-query only) and keeps the socket 'open', so
  the model/pill kept showing the previous profile. Re-pull both when
  $activeGatewayProfile changes.
2026-06-05 12:52:44 +00:00
..
app fix(desktop): heal stale runtime-id cache + model on profile switch (#39819) 2026-06-05 12:52:44 +00:00
components feat(desktop): per-profile remote gateway hosts (#39778) 2026-06-05 12:14:18 +00:00
hooks Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
lib Merge origin/main into bb/desktop-profile-support 2026-06-04 20:17:07 -05:00
store change(desktop): show up to 50 models in list per provider by default 2026-06-05 00:00:19 -04:00
themes Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
types refactor(desktop): drop per-session icons, read-only cross-profile reads 2026-06-04 18:24:35 -05:00
global.d.ts feat(desktop): per-profile remote gateway hosts (#39778) 2026-06-05 12:14:18 +00:00
hermes.ts refactor(desktop): drop per-session icons, read-only cross-profile reads 2026-06-04 18:24:35 -05:00
main.tsx feat(desktop): per-session profile switching + cross-profile sessions 2026-06-04 16:35:34 -05:00
styles.css feat(desktop): dedicated Providers settings + polished Accounts/API-keys UX (#38551) 2026-06-04 03:03:42 -05:00
vite-env.d.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00