mirror of
https://github.com/TanStack/ai.git
synced 2026-11-16 19:38:41 +00:00
fix!: fail loudly on a missing threadId and on 0.x saved data
- chat(), ChatClient, GenerationClient and VideoGenerationClient throw a clear error when threadId is missing or empty. The type already required it; a JS caller got persistence keyed "undefined" and runs with no thread. Drops two guards that could no longer fire. - A 0.x bare UIMessage[] in client persistence logs an error and is not overwritten by the next save, so the history is not lost. - retrieveBlob throws a clear error for a 0.x artifact record with no blobKey, instead of a misleading not-found. - A 0.x unbound tool interrupt record logs a warning that it stays pending. - A client tool or approval interrupt whose server and client schemas differ logs a warning naming the tool before it falls back to a generic interrupt. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1aa939256b
commit
69a3bbe873
20 changed files with 274 additions and 57 deletions
Loading…
Add table
Add a link
Reference in a new issue