Patch Changes
-
ed74dae: fix(ui): make
inputoptional onoutput-errortool and dynamic-tool UI message partsvalidateUIMessagesrejected persisted assistant messages whoseoutput-errortool parts had noinputkey. This happened for any errored tool call where the SDK setinput: undefined(e.g.NoSuchToolError/InvalidToolInputError): JSON serialization stripped theundefinedvalue, and Zod 4.4+ treats a missingz.unknown()key as a validation failure (previously it was implicitly optional). The schema now matches the runtime shape produced byprocess-ui-message-stream, so reloading a thread that contains an errored tool call no longer throwsAI_TypeValidationError. -
f4cc8eb: feat: add performance statistics
-
e80ada0: fix(ai): download tool-result file URLs
-
1dca341: fix: rename telemetry onFinish to onEnd
-
2605e5f: fix test mocks to return the first array-backed result on the first call