Skip to content

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

TypeScript

fix(desktop): suppress offline toast for auth-blocked catalog errors

Alfredo Lopez2c2f36099590
diff --git a/desktop-app/ui/src/hooks/domain/useChatListController.ts b/desktop-app/ui/src/hooks/domain/useChatListController.ts
index 1852d92dc..b98c215c4 100644
--- a/desktop-app/ui/src/hooks/domain/useChatListController.ts
+++ b/desktop-app/ui/src/hooks/domain/useChatListController.ts
@@ -432,6 +432,7 @@ export function useChatListController({
else if (isAuthorizationError(error)) onHostAuthorityUncertain(agentRef)
if (
!isConfirmedHostAccessRevoked(error) &&
+ !isAuthorizationError(error) &&
!catalogOfflineByAgentRef.current.has(agentRef)
) {
catalogOfflineByAgentRef.current.add(agentRef)
@@ -624,6 +625,7 @@ export function useChatListController({
else if (isAuthorizationError(error)) onHostAuthorityUncertain(agentRef)
if (
!isConfirmedHostAccessRevoked(error) &&
+ !isAuthorizationError(error) &&
!catalogOfflineByAgentRef.current.has(agentRef)
) {
catalogOfflineByAgentRef.current.add(agentRef)
@@ -1476,6 +1478,7 @@ export function useChatListController({
else if (isAuthorizationError(error)) onHostAuthorityUncertain(agentRef)
if (
!isConfirmedHostAccessRevoked(error) &&
+ !isAuthorizationError(error) &&
!catalogOfflineByAgentRef.current.has(agentRef)
) {
catalogOfflineByAgentRef.current.add(agentRef)