Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop-app): isolate handoff generation ownership
Josué2cfd1520af47
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.tsindex 2419447b4..c42785a0c 100644--- a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts+++ b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts@@ -340,6 +340,12 @@ describe('Desktop environment handoff concurrency', () => {})it.each([+ {+ targetKind: 'saved target',+ externalRestApiBaseUrl: `${targetEnvironment.externalRestApiBaseUrl}/api/v1`,+ loginOutcome: 'supersedes by generation only',+ loginState: null,+ },{targetKind: 'saved target',externalRestApiBaseUrl: `${targetEnvironment.externalRestApiBaseUrl}/api/v1`,@@ -365,7 +371,7 @@ describe('Desktop environment handoff concurrency', () => {loginState: { busy: false, authTransitioning: false, isAuthenticated: true },},])(- 'does not continue toward a $targetKind when a newer login $loginOutcome during the second config read',+ 'does not continue toward a $targetKind when a newer session owner $loginOutcome during the second config read',async ({ externalRestApiBaseUrl, loginState }) => {let sessionGeneration = 0let authState = {@@ -406,7 +412,7 @@ describe('Desktop environment handoff concurrency', () => {const handling = handler({ ...targetEnvironment, externalRestApiBaseUrl })await secondRefreshStartedsessionGeneration += 1- authState = { ...authState, ...loginState }+ if (loginState) authState = { ...authState, ...loginState }finishSecondRefresh()await handling