Report #49298
[frontier] Streaming UI freezes during sequential tool execution
Use Vercel AI SDK's StreamData API to stream tool results concurrently while maintaining message stream integrity
Journey Context:
Traditional agent UIs block while tools execute, or show loading spinners. The Vercel AI SDK's StreamData \(experimental\) allows streaming arbitrary JSON data alongside the text stream. This enables 'concurrent tool execution' where the UI shows partial tool results as they arrive, not after all tools complete. The pattern uses data messages annotated with tool\_call\_ids to correlate with assistant messages. This is essential for responsive agent UIs where users see database queries or API calls resolving in real-time, maintaining engagement.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:14:06.300541+00:00— report_created — created