From d5d80963faaabb45e03c4137337ccaf033852ef4 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 12:05:29 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#97119) Co-authored-by: github-actions[bot] --- apps/desktop/src/sdk/profile-routing.test.ts | 1 + apps/desktop/src/store/session-states.test.ts | 1 + apps/desktop/src/store/session-states.ts | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/sdk/profile-routing.test.ts b/apps/desktop/src/sdk/profile-routing.test.ts index 8b1a8f95c3..7d457762fa 100644 --- a/apps/desktop/src/sdk/profile-routing.test.ts +++ b/apps/desktop/src/sdk/profile-routing.test.ts @@ -138,6 +138,7 @@ const { $sessionTiles, sessionTileDelegate } = await import('@/store/session-states') + const { dropTilesForProfile } = await import('@/store/session-states') const { setWorkspaceScope } = await import('@/components/pane-shell/workspace-scope') diff --git a/apps/desktop/src/store/session-states.test.ts b/apps/desktop/src/store/session-states.test.ts index 7780872ba4..757890e72d 100644 --- a/apps/desktop/src/store/session-states.test.ts +++ b/apps/desktop/src/store/session-states.test.ts @@ -445,6 +445,7 @@ describe('dropTilesForProfile', () => { return raw ? (JSON.parse(raw) as Record) : {} } + // The tile buckets are module-private and other suites leave persisted // entries behind, so each test re-imports a FRESH session-states module // (empty tilesByProfile + empty storage) instead of fighting the residue — diff --git a/apps/desktop/src/store/session-states.ts b/apps/desktop/src/store/session-states.ts index 6a387f7d2a..eb95d832e4 100644 --- a/apps/desktop/src/store/session-states.ts +++ b/apps/desktop/src/store/session-states.ts @@ -56,7 +56,12 @@ import { setSessions } from './session' import { assertSessionOwnerResolved } from './session-owner-resolution' -import { requestForSessionProfile, type SessionOwnerRoute, type SessionOwnerScope, type SessionProfileRoute } from './session-request-router' +import { + requestForSessionProfile, + type SessionOwnerRoute, + type SessionOwnerScope, + type SessionProfileRoute +} from './session-request-router' import { ackStoredSessionId, markSessionUnreadFinished } from './session-unread' import { isBrowserWindow, isSecondaryWindow } from './windows'