fix: prevent infinite loop on ESC interrupt (#425)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -1911,13 +1911,6 @@ export default function App({
|
||||
processConversationRef.current = processConversation;
|
||||
}, [processConversation]);
|
||||
|
||||
// Reset interrupt flag when streaming ends
|
||||
useEffect(() => {
|
||||
if (!streaming) {
|
||||
setInterruptRequested(false);
|
||||
}
|
||||
}, [streaming]);
|
||||
|
||||
const handleAgentSelect = useCallback(
|
||||
async (targetAgentId: string, _opts?: { profileName?: string }) => {
|
||||
// Close selector immediately
|
||||
|
||||
Reference in New Issue
Block a user