From 1b9144aa78209989d47000d67146cf78968424ef Mon Sep 17 00:00:00 2001 From: Canyon Robins Date: Thu, 29 May 2025 09:29:37 -0700 Subject: [PATCH] [Condense] Add condense button to expanded task view --- webview-ui/src/components/chat/TaskHeader.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/webview-ui/src/components/chat/TaskHeader.tsx b/webview-ui/src/components/chat/TaskHeader.tsx index abfc6fd41e..71cbde10b7 100644 --- a/webview-ui/src/components/chat/TaskHeader.tsx +++ b/webview-ui/src/components/chat/TaskHeader.tsx @@ -58,6 +58,16 @@ const TaskHeader = ({ const { width: windowWidth } = useWindowSize() + const condenseButton = ( + + ) + return (
- + {condenseButton} {!!totalCost && ${totalCost.toFixed(2)}}
)} @@ -158,6 +162,7 @@ const TaskHeader = ({ : undefined } /> + {condenseButton}
)}