fix: prevent infinite loop on ESC interrupt (#425)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-29 20:12:03 -08:00
committed by GitHub
parent 96e0f94924
commit f5a1a5e400
2 changed files with 12 additions and 11 deletions

View File

@@ -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