Stale generated files in app/.well-known/workflow break streaming after code changes
Open
@ijjk is already working on this.
Since Dec 2, 2025.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 365
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 169
Description
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
DurableAgentwithgetWritable<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
ResponseAbortederrors 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.19ai: 5.0.104- Next.js 15 with Turbopack
- macOS
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.