Skip to content

fix(WorkflowAgent): apply maxRetries and abortSignal from prepareCall - #18593

Open
edenbuilds wants to merge 1 commit into
vercel:mainfrom
edenbuilds:fix/workflow-agent-preparecall-maxretries-abortsignal-18576
Open

fix(WorkflowAgent): apply maxRetries and abortSignal from prepareCall#18593
edenbuilds wants to merge 1 commit into
vercel:mainfrom
edenbuilds:fix/workflow-agent-preparecall-maxretries-abortsignal-18576

Conversation

@edenbuilds

Copy link
Copy Markdown

Summary

  • WorkflowAgent.prepareCall can return maxRetries and abortSignal (they are on GenerationSettings / PrepareCallResult), but the field-by-field merge skipped both so they were silently dropped.
  • Copy those two fields into effectiveGenerationSettings the same way as seed / headers.
  • Add a regression test that asserts they land on streamTextIterator's generationSettings.

Fixes #18576

Test plan

  • pnpm test:node -- src/workflow-agent.test.ts in packages/workflow (includes new prepareCall coverage)
  • Confirm constructor/per-call maxRetries / abortSignal still override prepareCall via the existing merge order

Made with Cursor

prepareCall could return these GenerationSettings fields, but the
field-by-field merge skipped them so they were silently dropped (vercel#18576).
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.

WorkflowAgent: maxRetries and abortSignal returned from prepareCall are silently ignored

1 participant