Skip to content

Commit 85ddaeb

Browse files
committed
webview-ui: use standard API Request icons for background mode; keep background labels; fix deps warning in ChatRow useMemo
1 parent 760a233 commit 85ddaeb

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const ChatRowContent = ({
305305
)
306306
) : bgDone ? (
307307
bgStatus === "completed" ? (
308-
<span className={`codicon codicon-chevron-${isExpanded ? "down" : "right"}`} />
308+
getIconSpan("arrow-swap", normalColor)
309309
) : (
310310
getIconSpan("error", bgStatus === "canceled" ? cancelledColor : errorColor)
311311
)
@@ -317,7 +317,9 @@ export const ChatRowContent = ({
317317
<ProgressIndicator />
318318
),
319319
apiReqCancelReason !== null && apiReqCancelReason !== undefined ? (
320-
apiReqCancelReason === "user_cancelled" ? (
320+
isBackground && label ? (
321+
<span style={{ color: normalColor }}>{label}</span>
322+
) : apiReqCancelReason === "user_cancelled" ? (
321323
<span style={{ color: normalColor, fontWeight: "bold" }}>
322324
{t("chat:apiRequest.cancelled")}
323325
</span>
@@ -344,17 +346,7 @@ export const ChatRowContent = ({
344346
default:
345347
return [null, null]
346348
}
347-
}, [
348-
type,
349-
isCommandExecuting,
350-
message,
351-
isExpanded,
352-
isMcpServerResponding,
353-
apiReqCancelReason,
354-
cost,
355-
apiRequestFailedMessage,
356-
t,
357-
])
349+
}, [type, isCommandExecuting, message, isMcpServerResponding, apiReqCancelReason, cost, apiRequestFailedMessage, t])
358350

359351
const headerStyle: React.CSSProperties = {
360352
display: "flex",

0 commit comments

Comments
 (0)