Report #82679
[frontier] UI freezing during tool execution causing poor UX in streaming chatbots
Use AI SDK streamText with tool.execute wrapped in React Suspense boundaries and useSuspenseQuery for progressive disclosure of tool results
Journey Context:
Standard tool calling blocks the stream until execution completes, creating 'dead air' in the UI. The AI SDK's 2025 streaming architecture treats tool calls as suspendable promises: when a tool is invoked, the React component suspends and shows fallback UI \(skeletons\) while the stream continues in the background. This 'concurrent mode' for agents allows the LLM to stream its reasoning while tools execute in parallel. Implement this for customer support bots with long-running database queries or code execution environments where users should see reasoning immediately even while tools run.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:22:15.391223+00:00— report_created — created