Files
hermes-agent/apps
teknium1 ca8874350c fix(desktop): prune the warm cache when a tile is parked, not only on publish (#77311)
Review found the parked-tile fix never fired on the case it targets: the
prune effect re-ran only on [activeSessionId, selectedStoredSessionId,
sessionTiles] plus each publish, and parking is driven by pane-lifecycle
when focus moves onto another pane — which changes none of those. On an
idle window the parked transcript stayed pinned until an unrelated publish
happened to come along.

- the effect now subscribes to $parkedTileStoredIds and lists it as a
  dependency, so parking alone drains the cache.
- tests: drive the real hook (and therefore the real isReferenced
  predicate) instead of the helper's bookkeeping — park a settled tile with
  NO other state change and assert eviction plus releaseSessionTranscript,
  and park a busy tile under the same pressure and assert it is retained.
  The bookkeeping-only store test is replaced by these two.
  Proven red on the pre-fix dependency array.
2026-09-20 20:50:54 -07:00
..