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

@@ -142,7 +142,7 @@ describe("typing controller", () => {
typing.markDispatchIdle();
}
await vi.advanceTimersByTimeAsync(2_000);
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(5);
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(testCase.first === "run" ? 3 : 5);
if (testCase.second === "run") {
typing.markRunComplete();
@@ -150,7 +150,7 @@ describe("typing controller", () => {
typing.markDispatchIdle();
}
await vi.advanceTimersByTimeAsync(2_000);
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(5);
expect(onReplyStart, testCase.name).toHaveBeenCalledTimes(testCase.first === "run" ? 3 : 5);
}
});