Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-legacy-route-shapes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"agent-bundle": minor
---

Drop the `complete` Flight worker message from the development server's production route invocation path. Generated workers have streamed `chunk` and `end` since #718, so an artifact compiled before that and restored from the epoch store now fails its render with `Compiled route worker failed.` instead of rendering one buffered document. Rebuild the project to restore rendering. (#838)
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ interface WorkerMessage {
readonly status?: 'failed' | 'mounted';
readonly type:
| 'chunk'
| 'complete'
| 'end'
| 'error'
| 'observed-handler'
Expand Down Expand Up @@ -348,11 +347,7 @@ const streamFromWorker = (
}
pending.delete(message.id);
entry.dispatchSignal.removeEventListener('abort', entry.abort);
// `complete` is the whole render in one message from a Flight worker
// compiled before #718; the epoch store restores such artifacts across
// dev-server restarts until the project rebuilds.
if (message.type === 'complete' && message.bytes !== undefined) entry.controller.enqueue(message.bytes);
if (message.type === 'end' || message.type === 'complete') {
if (message.type === 'end') {
entry.controller.close();
return;
}
Expand Down
Loading