Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop-app): tell users to reopen auth links (R17-L9)

Josué13cc24eba3c3
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts
index c6a92f9b9..492ce9b18 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts
+++ b/desktop-app/ui/src/hooks/domain/__tests__/desktopEnvironmentHandoff.test.ts
@@ -174,7 +174,7 @@ describe('Desktop environment handoff concurrency', () => {
originalActiveOptionId
)
expect(setStatus).toHaveBeenCalledWith(
- 'Finish the current authentication action before continuing this desktop link.',
+ 'Finish the current authentication action, then reopen this desktop link.',
'info'
)
})
@@ -898,7 +898,7 @@ describe('Desktop environment REST endpoint matching', () => {
expect(selectRuntimeConfig).not.toHaveBeenCalled()
expect(setPendingDesktopEnvironmentSetup).toHaveBeenCalledWith(null)
expect(setStatus).toHaveBeenCalledWith(
- 'Finish the current authentication action before continuing this desktop link.',
+ 'Finish the current authentication action, then reopen this desktop link.',
'info'
)
})
diff --git a/desktop-app/ui/src/hooks/domain/desktopEnvironmentHandoff.ts b/desktop-app/ui/src/hooks/domain/desktopEnvironmentHandoff.ts
index b6feda3b3..b87a1700c 100644
--- a/desktop-app/ui/src/hooks/domain/desktopEnvironmentHandoff.ts
+++ b/desktop-app/ui/src/hooks/domain/desktopEnvironmentHandoff.ts
@@ -105,10 +105,7 @@ function reportAuthenticationStateChanged(
setStatus: SetStatusFn
): void {
if (isAuthenticationOperationInProgress(state)) {
- setStatus(
- 'Finish the current authentication action before continuing this desktop link.',
- 'info'
- )
+ setStatus('Finish the current authentication action, then reopen this desktop link.', 'info')
return
}
setStatus('The desktop session changed while processing this link. Open it again.', 'info')
@@ -190,10 +187,7 @@ export function createDesktopEnvironmentSetupHandler({
}
if (isAuthenticationOperationInProgress(getAuthState())) {
- setStatus(
- 'Finish the current authentication action before opening another desktop environment.',
- 'info'
- )
+ setStatus('Finish the current authentication action, then reopen this desktop link.', 'info')
return
}
@@ -412,10 +406,7 @@ export function createDesktopEnvironmentSetupHandler({
return
}
if (isAuthenticationOperationInProgress(getAuthState())) {
- setStatus(
- 'Finish the current authentication action before opening another desktop environment.',
- 'info'
- )
+ setStatus('Finish the current authentication action, then reopen this desktop link.', 'info')
return
}
diff --git a/desktop-app/ui/src/hooks/domain/useAuthController.ts b/desktop-app/ui/src/hooks/domain/useAuthController.ts
index a2029b73d..7e4c91079 100644
--- a/desktop-app/ui/src/hooks/domain/useAuthController.ts
+++ b/desktop-app/ui/src/hooks/domain/useAuthController.ts
@@ -355,7 +355,7 @@ export function useAuthController({
message.includes('auth_transition_in_progress')
) {
setStatus(
- 'Finish the current authentication action before continuing this desktop link.',
+ 'Finish the current authentication action, then reopen this desktop link.',
'info'
)
} else if (
@@ -461,7 +461,7 @@ export function useAuthController({
}
if (message.includes('auth_transition_in_progress')) {
setStatus(
- 'Finish the current authentication action before continuing this desktop link.',
+ 'Finish the current authentication action, then reopen this desktop link.',
'info'
)
return null
@@ -569,10 +569,7 @@ export function useAuthController({
setStatus('The desktop session changed while processing this link. Open it again.', 'info')
}
const reportAuthenticationInProgress = () => {
- setStatus(
- 'Finish the current authentication action before continuing this desktop link.',
- 'info'
- )
+ setStatus('Finish the current authentication action, then reopen this desktop link.', 'info')
}
if (bootingRef.current || busyRef.current || authTransitioningRef.current) {