Patch Changes
- 148babc:
WorkflowChatTransportnow drops orphan UI chunks (deltas/ends and tool output/approval chunks whose part was started before the resumed window) when reconnecting with a negativeinitialStartIndex, instead of crashing the AI SDK client. Self-containedtool-input-available/tool-input-errorchunks establish the tool part and are never dropped. A one-time warning links to docs on rewinding to a step boundary server-side. - e660e45: Reduce the
doStreamStepstep-boundary payload by returning minimal raw aggregates and reconstructing theStepResultoutside the step, instead of serializing the fullStepResultplus the per-chunk array into the durable event log. - cc773bc: Expose
totalUsageandfinishReasonon theWorkflowAgent.stream()result, mirroringGenerateTextResult/StreamTextResultand the existingonEndevent payload.- ai@7.0.17