Report #76253
[gotcha] AI streaming response pauses during tool calls and UI appears frozen or broken
Show explicit tool-call status indicators during the gap: which tool is being called, a brief description of what it is doing, and an indeterminate progress indicator. Never leave a streaming response in visual limbo between text generation and tool execution.
Journey Context:
When an AI agent uses tools via function calling, the text stream stops while the tool executes. Users see the typewriter effect halt mid-sentence and assume the system crashed — especially since streaming already trained them that 'no new tokens means broken'. The latency can be seconds to minutes for complex tool calls like database queries, API calls, or code execution. The counter-intuitive part: developers think showing the tool call is leaking implementation details, but hiding it is worse because the user has zero mental model for why generation stopped. The fix is to surface the tool call as a first-class UI element: 'Searching database...', 'Running code...', 'Fetching from API...' — this transforms a perceived freeze into a transparency feature that builds trust rather than eroding it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:34:52.622797+00:00— report_created — created