File tree Expand file tree Collapse file tree 3 files changed +19
-27
lines changed Expand file tree Collapse file tree 3 files changed +19
-27
lines changed Original file line number Diff line number Diff line change @@ -1081,14 +1081,10 @@ export const ChatRowContent = ({
10811081 "cursor-pointer hover:bg-vscode-dropdown-background hover:border-vscode-dropdown-border transition-colors" ,
10821082 ) }
10831083 style = { { opacity : cost !== null && cost !== undefined && cost > 0 ? 1 : 0 } }
1084- onClick = {
1085- cloudIsAuthenticated
1086- ? ( e ) => {
1087- e . stopPropagation ( ) // Prevent parent onClick from firing
1088- vscode . postMessage ( { type : "switchTab" , tab : "cloud" } )
1089- }
1090- : undefined
1091- }
1084+ onClick = { ( e ) => {
1085+ e . stopPropagation ( ) // Prevent parent onClick from firing
1086+ vscode . postMessage ( { type : "switchTab" , tab : "cloud" } )
1087+ } }
10921088 title = { cloudIsAuthenticated ? t ( "chat:apiRequest.viewTokenUsage" ) : undefined } >
10931089 ${ Number ( cost || 0 ) ?. toFixed ( 4 ) }
10941090 </ div >
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const TaskHeader = ({
5050 todos,
5151} : TaskHeaderProps ) => {
5252 const { t } = useTranslation ( )
53- const { apiConfiguration, currentTaskItem, clineMessages, cloudIsAuthenticated } = useExtensionState ( )
53+ const { apiConfiguration, currentTaskItem, clineMessages } = useExtensionState ( )
5454 const { id : modelId , info : model } = useSelectedModel ( apiConfiguration )
5555 const [ isTaskExpanded , setIsTaskExpanded ] = useState ( false )
5656 const [ showLongRunningTaskMessage , setShowLongRunningTaskMessage ] = useState ( false )
@@ -302,24 +302,20 @@ const TaskHeader = ({
302302 </ th >
303303 < td className = "align-top" >
304304 < span > ${ totalCost ?. toFixed ( 2 ) } </ span >
305- { cloudIsAuthenticated ? (
306- < StandardTooltip content = { t ( "chat:apiRequest.viewTokenUsage" ) } >
307- < ChartColumn
308- className = "inline size-3.5 -mt-0.5 ml-2 text-vscode-textLink-foreground cursor-pointer hover:text-vscode-textLink-activeForeground transition-colors"
309- onClick = { ( e ) => {
310- e . stopPropagation ( )
311- import ( "@src/utils/vscode" ) . then ( ( { vscode } ) => {
312- vscode . postMessage ( {
313- type : "switchTab" ,
314- tab : "cloud" ,
315- } )
305+ < StandardTooltip content = { t ( "chat:apiRequest.viewTokenUsage" ) } >
306+ < ChartColumn
307+ className = "inline size-3.5 -mt-0.5 ml-2 text-vscode-textLink-foreground cursor-pointer hover:text-vscode-textLink-activeForeground transition-colors"
308+ onClick = { ( e ) => {
309+ e . stopPropagation ( )
310+ import ( "@src/utils/vscode" ) . then ( ( { vscode } ) => {
311+ vscode . postMessage ( {
312+ type : "switchTab" ,
313+ tab : "cloud" ,
316314 } )
317- } }
318- />
319- </ StandardTooltip >
320- ) : (
321- < ChartColumn className = "inline size-3.5 -mt-0.5 ml-2 text-vscode-textLink-foreground" />
322- ) }
315+ } )
316+ } }
317+ />
318+ </ StandardTooltip >
323319 </ td >
324320 </ tr >
325321 ) }
Original file line number Diff line number Diff line change 148148 "streaming" : " API Request..." ,
149149 "cancelled" : " API Request Cancelled" ,
150150 "streamingFailed" : " API Streaming Failed" ,
151- "viewTokenUsage" : " View token usage"
151+ "viewTokenUsage" : " View token usage stats "
152152 },
153153 "checkpoint" : {
154154 "regular" : " Checkpoint" ,
You can’t perform that action at this time.
0 commit comments