Repository navigation
fix(think): complete interrupted structured workflow turns with their output - #2362
Conversation
… output (#1727) Co-authored-by: Cursor <cursoragent@cursor.com>
🦋 Changeset detectedLatest commit: 62e2037 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
⚪ agents import sizesMeasured 344 runtime imports as minified bundles. The primary size is gzip; raw minified size is included for diagnosis. An existing import growing by more than 10% is marked red. This report is informational.
Compared No import sizes changed. All 344 current runtime imports
Reported by agent-think[bot]. |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
|
Thanks for this. It fixes a production failure we've been hitting, so here's another manifestation of #1727 in case it's useful for the tests. Setup: a Symptom: when a deploy lands while that turn is streaming, the instance fails at Gateway evidence:
Versions: the same gap is in 0.17.0, 0.19.0 and main. We're carrying this PR's |
Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes #1727.
Summary
A
step.prompt()workflow turn interrupted mid-stream was recovered asskipped, so the workflow step failed withThinkPromptSkippedErrorinstead of completing with its structured output.Tests
submissions.test.ts: "structured turn interrupted mid-stream (Structured workflow turn interrupted mid-stream recovers asskippedinstead of completing with output #1727)" covers the retry path and the continue path. Both complete with the structured output.workflow-recovery.test.tsis tightened to expectcompleteand the output. It needs wrangler auth, so it was not run locally.docs/think/workflows.md.