fix(WorkflowAgent): apply maxRetries and abortSignal from prepareCall - #18593
fix(WorkflowAgent): apply maxRetries and abortSignal from prepareCall#18593edenbuilds wants to merge 1 commit into
Conversation
prepareCall could return these GenerationSettings fields, but the field-by-field merge skipped them so they were silently dropped (vercel#18576).
|
Thanks for picking this up. I filed #18576, so I verified the branch: reverting just the four source lines makes the new test fail and restoring them passes all 74, and the merge order you left unchecked does hold for both fields. The On So this half makes One piece of the issue is untouched: Minor and pre-existing: when both a per-stream and a |
Summary
WorkflowAgent.prepareCallcan returnmaxRetriesandabortSignal(they are onGenerationSettings/PrepareCallResult), but the field-by-field merge skipped both so they were silently dropped.effectiveGenerationSettingsthe same way asseed/headers.streamTextIterator'sgenerationSettings.Fixes #18576
Test plan
pnpm test:node -- src/workflow-agent.test.tsinpackages/workflow(includes new prepareCall coverage)maxRetries/abortSignalstill override prepareCall via the existing merge orderMade with Cursor