diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index b0b87e7a2dd..f042f06db39 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -1032,12 +1032,16 @@ export const ChatRowContent = ({ const isApiRequestInProgress = apiReqCancelReason === undefined && apiRequestFailedMessage === undefined && cost === undefined + // For completed requests (with cost), make them expandable + const isCompletedRequest = cost !== null && cost !== undefined + const canExpand = isCompletedRequest && message.text !== null && message.text !== undefined + return ( <>