hermes-agent/apps/desktop/src/app/session
Brooklyn Nicholson 4aa672b23e fix(desktop): stop cold-start resume homing focus to the workspace tab (⌘R tab persistence)
The layout tree persists the active tab, but every reload landed on main
anyway: boot's route resume sets $selectedStoredSessionId, and the
selection listener in store/session-states.ts treats every selection
change as a navigation — noteActiveTreeGroup(null) +
revealTreePane('workspace') — fronting the workspace tab over the
persisted active tile and then persisting that clobber.

A cold-start restore is a re-attachment, not a navigation, so
use-route-resume now arms a one-shot (markSelectionRestore) before
dispatching the window's FIRST resume; the selection listener consumes
it and skips homing exactly once. Every later resume — sidebar click,
route change, reconnect — homes as before, and starting on /new
consumes boot status too so a subsequent session open still homes.
2026-07-29 20:57:04 -05:00
..
hooks fix(desktop): stop cold-start resume homing focus to the workspace tab (⌘R tab persistence) 2026-07-29 20:57:04 -05:00
workspace-session-target.test.ts refactor(desktop): move the main-is-occupied check into the session door 2026-07-29 18:16:14 -05:00
workspace-session-target.ts refactor(desktop): move the main-is-occupied check into the session door 2026-07-29 18:16:14 -05:00