fix: reset interrupted flag before retry to prevent silent stream drops (#469)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-05 09:28:49 -08:00
committed by GitHub
parent c9c86ca138
commit dce4cccfc2

View File

@@ -1902,6 +1902,9 @@ export default function App({
(id) => id !== statusId,
);
refreshDerived();
// Reset interrupted flag so retry stream chunks are processed
buffersRef.current.interrupted = false;
continue;
}
@@ -1965,6 +1968,8 @@ export default function App({
refreshDerived();
if (!cancelled) {
// Reset interrupted flag so retry stream chunks are processed
buffersRef.current.interrupted = false;
// Retry by continuing the while loop (same currentInput)
continue;
}