From 0c97db393c05ef616506a3727939e87e1a2a4a80 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Thu, 19 Feb 2026 21:16:14 +0000 Subject: [PATCH] fix(ui): expand read tool calls on error --- packages/ui/src/components/tool-call.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ui/src/components/tool-call.tsx b/packages/ui/src/components/tool-call.tsx index 741d00d5..97164b1b 100644 --- a/packages/ui/src/components/tool-call.tsx +++ b/packages/ui/src/components/tool-call.tsx @@ -166,6 +166,10 @@ export default function ToolCall(props: ToolCallProps) { const prefExpanded = toolOutputDefaultExpanded() const toolName = toolCallMemo()?.tool || "" if (toolName === "read") { + const state = toolState() + if (state?.status === "error") { + return true + } return false } return prefExpanded