Skip to content

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

TypeScript

fix(desktop-ui): r5-l2 drop redundant spinner gates

Josué28d9f48610ec
diff --git a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts b/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
index c8c9130d3..9545808f0 100644
--- a/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
+++ b/desktop-app/ui/src/hooks/domain/useAgentChatController.ts
@@ -1417,9 +1417,7 @@ export function useAgentChatController({
autoSelectedChatIdRef.current = latest.id
await switchToChatForIntent(selectedAgent, latest.id, selectionIntentRevision)
}
- if (selectionIntentRevisionRef.current === selectionIntentRevision) {
- setChatMessagesLoading(false)
- }
+ setChatMessagesLoading(false)
return
}
if (requestedSelection?.mode === 'specific') {
@@ -1441,9 +1439,7 @@ export function useAgentChatController({
await switchToChatForIntent(selectedAgent, latest.id, selectionIntentRevision)
}
}
- if (selectionIntentRevisionRef.current === selectionIntentRevision) {
- setChatMessagesLoading(false)
- }
+ setChatMessagesLoading(false)
})()
return () => {