hermes-agent/apps/desktop/src/components
Brooklyn Nicholson e30174fa17 perf(desktop): scope tool-diff subscriptions + narrow profile query invalidation
Two structural fixes from the Desktop performance audit (P2 tier):

1. Scope live tool-diff subscriptions. `ToolEntry` subscribed to the whole
   `$toolDiffs` map via `useStore`, so one `recordToolDiff` re-rendered every
   mounted tool row. Add a cached per-toolCallId derived atom
   (`$toolInlineDiff(id)`, mirroring the existing `$toolDisclosureOpen` pattern);
   computed() only notifies when that id's diff string changes, so a live patch
   re-renders one row.

2. Narrow profile / gateway-switch query invalidation. Both the active-profile
   subscription and `wipeSessionListsForGatewaySwitch` called keyless
   `queryClient.invalidateQueries()`, refetching account/marketplace/onboarding
   caches on every switch. Add `invalidateProfileScopedQueries()` with a
   denylist of profile-independent roots (billing, marketplace-themes,
   onboarding-model-options, contrib-logs-tail). A denylist is correctness-safe:
   a root we forget just refetches (cheap), whereas an allowlist that misses a
   profile-scoped key would paint the previous profile's data.

Tests: per-tool notify isolation, and real-QueryClient invalidation partition
(profile-scoped invalidated, global left intact, unknown keys invalidated).
2026-07-18 19:15:57 -04:00
..
assistant-ui perf(desktop): scope tool-diff subscriptions + narrow profile query invalidation 2026-07-18 19:15:57 -04:00
chat perf(desktop): kill the layout-thrash cascade on session switch (#66033) 2026-07-16 22:46:08 -04:00
onboarding fmt(js): `npm run fix` on merge (#66445) 2026-07-17 18:26:36 +00:00
pane-shell fmt(js): `npm run fix` on merge (#65229) 2026-07-15 21:40:56 +00:00
particles feat(desktop): TikTok-style vibe hearts on a reusable particle system 2026-07-10 05:42:14 -05:00
pet chore(desktop): remove the DEV Shift+H heart preview 2026-07-10 16:09:23 -05:00
ui fix(dialog): close button not working and tooltip showing on open (#66340) 2026-07-18 14:50:38 -04:00
Backdrop.tsx feat(desktop): add a chat backdrop on/off toggle 2026-07-14 16:50:03 -04:00
boot-failure-overlay.test.tsx fix(desktop): recover a failed gateway from the boot-failure screen 2026-07-12 04:07:41 -04:00
boot-failure-overlay.tsx fmt(js): `npm run fix` on merge (#65229) 2026-07-15 21:40:56 +00:00
boot-failure-reauth.test.ts fix(desktop): treat connected-but-expired remote sessions as reauth 2026-07-12 04:08:14 -04:00
boot-failure-reauth.ts fmt(js): `npm run fix` on merge (#65229) 2026-07-15 21:40:56 +00:00
brand-mark.tsx
…
desktop-install-overlay.tsx feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
error-boundary.tsx
…
gateway-connecting-overlay.test.tsx test(desktop): fix remaining act() warnings in gateway-connecting-overlay 2026-07-13 17:22:17 -04:00
gateway-connecting-overlay.tsx fmt(js): `npm run fix` on merge (#65229) 2026-07-15 21:40:56 +00:00
haptics-provider.tsx
…
language-switcher.test.tsx
…
language-switcher.tsx feat(desktop): button tooltip keybind hints + keybinds settings tab + unified worktree dialog (#65204) 2026-07-16 18:26:21 -04:00
model-picker.tsx refactor(desktop): adopt shared utils + app-wide cleanups 2026-07-03 13:48:44 -05:00
model-visibility-dialog.tsx fix: limit desktop model pickers to explicit providers 2026-07-07 15:12:54 -07:00
notifications.tsx refactor(desktop): adopt shared utils + app-wide cleanups 2026-07-03 13:48:44 -05:00
page-loader.tsx
…
prompt-overlays.test.tsx feat(desktop): shared UI — per-session prompt overlays, gateway overlays, tab primitives 2026-07-13 17:57:54 -04:00
prompt-overlays.tsx fmt(js): `npm run fix` on merge (#65229) 2026-07-15 21:40:56 +00:00
remote-display-banner.tsx refactor(desktop): adopt shared utils + app-wide cleanups 2026-07-03 13:48:44 -05:00
session-picker.tsx
…
status-dot.tsx
…