fix(ui): expand read tool calls on error

This commit is contained in:
Shantur Rathore
2026-02-19 21:16:14 +00:00
parent 614c300d2f
commit 0c97db393c

View File

@@ -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