Bug Description
Generated route files in app/.well-known/workflow/ become stale after workflow code changes, causing streams to never reach the client even though workflows complete successfully.
Reproduction Steps
- Create a workflow using
DurableAgent with getWritable<UIMessageChunk>()
- Run the workflow successfully (streaming works)
- Make any code change to the workflow file
- Hot reload triggers, workflow bundles rebuild
- Send a new message - workflow completes but stream never delivers to client
Observed Behavior
- Workflow step completes in ~1-2 seconds (verified via
npx workflow inspect step)
- API POST hangs for 30+ seconds until timeout
ResponseAborted errors in console
- No stream data reaches the client
Expected Behavior
Stream should deliver to client after code changes without manual intervention.
Workaround
Delete generated files before each dev server start:
"dev": "rm -rf app/.well-known && next dev --turbopack"
Environment
workflow: 4.0.1-beta.19
@workflow/ai: 4.0.1-beta.19
ai: 5.0.104
- Next.js 15 with Turbopack
- macOS