Skip to content

Commit 2708b0a

Browse files
fix(agents): do not misclassify client-disconnect abort as run timeout
1 parent 97f6d7c commit 2708b0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agents/failover-error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ describe("buildFailoverRemediationHint", () => {
13191319

13201320
describe("isSignalTimeoutReason", () => {
13211321
it("returns false for plain AbortController.abort() DOMException (client disconnect)", () => {
1322-
// watchClientDisconnect calls abort() with no args → DOMException("This operation was aborted", "AbortError")
1322+
// watchClientDisconnect calls abort() with no args, producing AbortError.
13231323
// This must not be classified as a run timeout (#90764).
13241324
const err = new DOMException("This operation was aborted", "AbortError");
13251325
expect(isSignalTimeoutReason(err)).toBe(false);

0 commit comments

Comments
 (0)