Pulastya B commited on
Commit
f1ace72
·
1 Parent(s): 11c0b04

Fix loading indicator: remove finally block that killed isTyping after instant /run-async return

Browse files
FRRONTEEEND/components/ChatInterface.tsx CHANGED
@@ -449,10 +449,11 @@ export const ChatInterface: React.FC<{ onBack: () => void }> = ({ onBack }) => {
449
  content: errorMessage,
450
  timestamp: new Date()
451
  }]);
452
- } finally {
453
- // Setting isTyping to false will trigger useEffect to stop polling
454
  setIsTyping(false);
455
  }
 
456
  };
457
 
458
  const updateSession = (id: string, messages: Message[]) => {
 
449
  content: errorMessage,
450
  timestamp: new Date()
451
  }]);
452
+
453
+ // On error, stop loading indicator
454
  setIsTyping(false);
455
  }
456
+ // NOTE: No finally block - isTyping is set to false by SSE analysis_complete event
457
  };
458
 
459
  const updateSession = (id: string, messages: Message[]) => {