Skip to content

[v6.0] fix(ai): tag step/chunk timeout aborts with TimeoutError reason#16803

Merged
gr2m merged 1 commit into
release-v6.0from
backport-v6.0/fix-14943
Jul 6, 2026
Merged

[v6.0] fix(ai): tag step/chunk timeout aborts with TimeoutError reason#16803
gr2m merged 1 commit into
release-v6.0from
backport-v6.0/fix-14943

Conversation

@gr2m

@gr2m gr2m commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Manual backport of #14943 to release-v6.0 (the surrounding stream-text/generate-text code diverged, so the hunks were applied by hand; the new setAbortTimeout util and its tests came over verbatim). Step/chunk timeouts now abort with a TimeoutError DOMException — matching AbortSignal.timeout(ms) — instead of an undefined reason. Tests adapted to v6 (MockLanguageModelV3); 551 tests across the three touched test files pass locally.

Part of the v6.0 backport tracking issue #16767.

Manual backport of #14943 to release-v6.0: step and chunk timeouts
previously called abort() with no reason, so consumers could not
distinguish timeouts from user aborts. Introduces the self-contained
setAbortTimeout util that aborts with a TimeoutError DOMException,
matching AbortSignal.timeout(ms).

Tests adapted to v6 (MockLanguageModelV3).

(cherry picked from commit 47e65d6079913b0e96eddea7cae1a02fddda109c)
@gr2m gr2m added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Jul 6, 2026
@gr2m gr2m merged commit 8ed1f83 into release-v6.0 Jul 6, 2026
52 checks passed
@gr2m gr2m deleted the backport-v6.0/fix-14943 branch July 6, 2026 20:08
github-actions Bot added a commit that referenced this pull request Jul 6, 2026
@github-actions github-actions Bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Backport to release-v5.0 created but has conflicts: #16833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants