fix(typing): stop keepalive restarts after run completion (land #27413, thanks @widingmarcus-cyber)

Co-authored-by: Marcus Widing <widing.marcus@gmail.com>
This commit is contained in:
Peter Steinberger
2026-02-26 11:41:38 +00:00
parent fec3fdf7ef
commit 8bf1c9a23a
4 changed files with 90 additions and 2 deletions

View File

@@ -99,6 +99,10 @@ export function createTypingController(params: {
if (sealed) {
return;
}
// Late callbacks after a run completed should never restart typing.
if (runComplete) {
return;
}
await onReplyStart?.();
};