Skip to content

Backport #2730: fix(ai): continue DurableAgent tool loops#2740

Merged
VaguelySerious merged 1 commit into
stablefrom
backport/pr-2730-to-stable
Jul 1, 2026
Merged

Backport #2730: fix(ai): continue DurableAgent tool loops#2740
VaguelySerious merged 1 commit into
stablefrom
backport/pr-2730-to-stable

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Automated backport of #2730 to stable (backport job run).

AI recommendation: This is a self-contained bug fix to packages/ai/src/agent/stream-text-iterator.ts, which exists on stable with the exact same finishReason === 'tool-calls' code being patched. The fix does not depend on any main-only APIs and applies equally to stable.

Signed-off-by: Nathan Colosimo <110621881+NathanColosimo@users.noreply.github.com>
@github-actions github-actions Bot requested review from a team and ijjk as code owners July 1, 2026 16:41
@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8bf6572

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@workflow/ai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jul 1, 2026 4:45pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jul 1, 2026 4:45pm
example-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-astro-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-express-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-fastify-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-hono-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-nitro-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workbench-vite-workflow Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 4:45pm
workflow-swc-playground Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workflow-tarballs Ready Ready Preview, Comment Jul 1, 2026 4:45pm
workflow-web Ready Ready Preview, Comment Jul 1, 2026 4:45pm

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 1077 0 78 1155
✅ 💻 Local Development 1174 0 86 1260
✅ 📦 Local Production 1174 0 86 1260
✅ 🐘 Local Postgres 1162 0 98 1260
✅ 🪟 Windows 105 0 0 105
❌ 🌍 Community Worlds 79 102 9 190
✅ 📋 Other 592 0 38 630
Total 5363 102 395 5860

❌ Failed Tests

🌍 Community Worlds (102 failed)

redis (19 failed):

  • hookWorkflow | wrun_01KWFEHSXES9DE84YNKD31P06Z
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KWFEJ2MT8Y0E637J7SYXNE77
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01KWFEJEP2B5V2TQGYDN1QMNPS
  • sleepingWorkflow | wrun_01KWFEKEGZ05MH5V5HHTR99WDN
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KWFEVFSGCD4XSZDCNE5R195K
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KWFEVX912NDZFKZVTHKFADM0
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KWFEW5KBB6M49K3B7VTPFD7H
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KWFEWKWC6T4VPDG85E1QQ9QZ
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KWFEXGCA639FMW8C7XCWABBN
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KWFEXN528XXW1GK42J99ZVPP
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KWFEXV2H8G91S5VSYNNPWJA9
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KWFEXZC40ATVCCKR1VAYBBY3
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KWFEY9C5ZQQK0GG31Z25RPYE
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KWFF47TFYRE7F47HKN7H2K1P

turso (83 failed):

  • addTenWorkflow | wrun_01KWFEGSGBN12SR1BC4NAWQJCD
  • addTenWorkflow | wrun_01KWFEGSGBN12SR1BC4NAWQJCD
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KWFEHMMRDD8YZEZN59RCCZCQ
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KWFEH16NS89GJ54WMC8C1VX5
  • promiseRaceWorkflow | wrun_01KWFEH7CQ7V660YT57D01Y8B3
  • promiseAnyWorkflow | wrun_01KWFEH9WYN6PJMHTXAT3G5KS7
  • importedStepOnlyWorkflow | wrun_01KWFEHXK01WAB1ABJHT2W01TB
  • readableStreamWorkflow | wrun_01KWFEHDDTR5DN76S65C1AW845
  • hookWorkflow | wrun_01KWFEHSXES9DE84YNKD31P06Z
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KWFEJ2MT8Y0E637J7SYXNE77
  • webhookWorkflow | wrun_01KWFEJ819HVHX045NE91XWEBW
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01KWFEJEP2B5V2TQGYDN1QMNPS
  • sleepingWorkflow | wrun_01KWFEKEGZ05MH5V5HHTR99WDN
  • parallelSleepWorkflow | wrun_01KWFEKYSK38T5QAQW6PKP09ZC
  • sleepWinsRaceWorkflow | wrun_01KWFEM2DF4NYSZY3PRY1SA1XE
  • stepWinsRaceWorkflow | wrun_01KWFEM61JYSKB4V0D0A38DGCN
  • nullByteWorkflow | wrun_01KWFEM9R6K4CA9P2RY4STVF37
  • workflowAndStepMetadataWorkflow | wrun_01KWFEMCAN2NE8CDF19CE60VXM
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KWFEPRW7DN5HS7CCGHYM6F6G
  • writableForwardedFromWorkflowWorkflow | wrun_01KWFEQ6DV5R8N68K9XQW07BYQ
  • writableForwardedFromStepWorkflow | wrun_01KWFEQB114WC2QNWP4SYT1JRE
  • fetchWorkflow | wrun_01KWFEQDPPETF3PHN53QQMFR6W
  • promiseRaceStressTestWorkflow | wrun_01KWFEQHBGNB9P0V15T90F8HX7
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KWFEV1G6WWA6MBY6DZ49QTVC
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KWFEVFSGCD4XSZDCNE5R195K
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KWFEVX912NDZFKZVTHKFADM0
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KWFEW05YWTFAQMMEJ0H01MK9
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KWFEW2Y2DQ6Q2GWHR6F3XSTS
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KWFEW5KBB6M49K3B7VTPFD7H
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KWFEWKWC6T4VPDG85E1QQ9QZ
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KWFEXGCA639FMW8C7XCWABBN
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KWFEXN528XXW1GK42J99ZVPP
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KWFEXV2H8G91S5VSYNNPWJA9
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KWFEXZC40ATVCCKR1VAYBBY3
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KWFEY9C5ZQQK0GG31Z25RPYE
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KWFEYG5ARF0C4X0GV6VH5CKN
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KWFEZ0SCJ7J7Q956T20X39F9
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KWFEZAVCXF4NXDZX03P2MYVP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KWFEZH3Q3ZVSW4130Z7NMQSE
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KWFEZKHNKMT2KSGZMZWAWKV3
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KWFF03EM23WH6VR1XXVC399F
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KWFF09XT6ZYRG9N7K2BZ6F9W
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KWFF0H8HFXED2SRCVA42Y8Y6
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KWFF0QPW5R2D7MR7H22EW1AD
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KWFF0ZXF118N8FNJBAX9JDR4
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KWFF17BVJZ7SY2MNYY82DKJA
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KWFF1ES0DH4AYWY6WNXHPE4Q
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KWFF1W2NES36ZYF9Z0182KRA
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KWFF24WYYGBQE96HCKPKRK03
  • cancelRun - cancelling a running workflow | wrun_01KWFF2CGPVRG0B0EQNSYRS6EH
  • cancelRun via CLI - cancelling a running workflow | wrun_01KWFF2HPXEH4KN3FC81P2E210
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KWFF2T6ZMHE8BRMDY8MH9RED
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KWFF36VA3GPV8Y3BA0VX753W
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KWFF3GE7GJSM6JNX152HPSXK
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KWFF3VFQ0YZ5E85QXC82SJ6R
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KWFF42XJTN05ECWKGD2CZVVV
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KWFF45AK4FRSDH956GVWD18H
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KWFF47TFYRE7F47HKN7H2K1P

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 97 0 8
✅ example 97 0 8
✅ express 97 0 8
✅ fastify 97 0 8
✅ hono 97 0 8
✅ nextjs-turbopack 102 0 3
✅ nextjs-webpack 102 0 3
✅ nitro 97 0 8
✅ nuxt 97 0 8
✅ sveltekit 97 0 8
✅ vite 97 0 8
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 99 0 6
✅ express-stable 99 0 6
✅ fastify-stable 99 0 6
✅ hono-stable 99 0 6
✅ nextjs-turbopack-canary 86 0 19
✅ nextjs-turbopack-stable 105 0 0
✅ nextjs-webpack-canary 86 0 19
✅ nextjs-webpack-stable 105 0 0
✅ nitro-stable 99 0 6
✅ nuxt-stable 99 0 6
✅ sveltekit-stable 99 0 6
✅ vite-stable 99 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 99 0 6
✅ express-stable 99 0 6
✅ fastify-stable 99 0 6
✅ hono-stable 99 0 6
✅ nextjs-turbopack-canary 86 0 19
✅ nextjs-turbopack-stable 105 0 0
✅ nextjs-webpack-canary 86 0 19
✅ nextjs-webpack-stable 105 0 0
✅ nitro-stable 99 0 6
✅ nuxt-stable 99 0 6
✅ sveltekit-stable 99 0 6
✅ vite-stable 99 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 98 0 7
✅ express-stable 98 0 7
✅ fastify-stable 98 0 7
✅ hono-stable 98 0 7
✅ nextjs-turbopack-canary 85 0 20
✅ nextjs-turbopack-stable 104 0 1
✅ nextjs-webpack-canary 85 0 20
✅ nextjs-webpack-stable 104 0 1
✅ nitro-stable 98 0 7
✅ nuxt-stable 98 0 7
✅ sveltekit-stable 98 0 7
✅ vite-stable 98 0 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 105 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 3
✅ redis-dev 3 0 3
❌ redis 67 19 0
✅ turso-dev 3 0 3
❌ turso 3 83 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 99 0 6
✅ e2e-local-dev-tanstack-start-stable 99 0 6
✅ e2e-local-postgres-nest-stable 98 0 7
✅ e2e-local-postgres-tanstack-start-stable 98 0 7
✅ e2e-local-prod-nest-stable 99 0 6
✅ e2e-local-prod-tanstack-start-stable 99 0 6

📋 View full workflow run

@VaguelySerious VaguelySerious enabled auto-merge (squash) July 1, 2026 18:19
@VaguelySerious VaguelySerious merged commit cfb8f77 into stable Jul 1, 2026
92 of 95 checks passed
@VaguelySerious VaguelySerious deleted the backport/pr-2730-to-stable branch July 1, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant