|
|
@@ -46,8 +46,6 @@ import { ChatTextArea } from "./ChatTextArea"
|
|
|
import { MAX_IMAGES_PER_MESSAGE } from "./ChatView"
|
|
|
import { useSelectedModel } from "../ui/hooks/useSelectedModel"
|
|
|
import {
|
|
|
- ChevronRight,
|
|
|
- ChevronDown,
|
|
|
Eye,
|
|
|
FileDiff,
|
|
|
ListTree,
|
|
|
@@ -289,11 +287,7 @@ export const ChatRowContent = ({
|
|
|
getIconSpan("error", errorColor)
|
|
|
)
|
|
|
) : cost !== null && cost !== undefined ? (
|
|
|
- isExpanded ? (
|
|
|
- <ChevronDown className="w-4 shrink-0" />
|
|
|
- ) : (
|
|
|
- <ChevronRight className="w-4 shrink-0" />
|
|
|
- )
|
|
|
+ getIconSpan("arrow-swap", normalColor)
|
|
|
) : apiRequestFailedMessage ? (
|
|
|
getIconSpan("error", errorColor)
|
|
|
) : (
|
|
|
@@ -325,17 +319,7 @@ export const ChatRowContent = ({
|
|
|
default:
|
|
|
return [null, null]
|
|
|
}
|
|
|
- }, [
|
|
|
- type,
|
|
|
- isCommandExecuting,
|
|
|
- message,
|
|
|
- isMcpServerResponding,
|
|
|
- apiReqCancelReason,
|
|
|
- cost,
|
|
|
- apiRequestFailedMessage,
|
|
|
- t,
|
|
|
- isExpanded,
|
|
|
- ])
|
|
|
+ }, [type, isCommandExecuting, message, isMcpServerResponding, apiReqCancelReason, cost, apiRequestFailedMessage, t])
|
|
|
|
|
|
const headerStyle: React.CSSProperties = {
|
|
|
display: "flex",
|
|
|
@@ -1062,13 +1046,7 @@ export const ChatRowContent = ({
|
|
|
? 10
|
|
|
: 0,
|
|
|
justifyContent: "space-between",
|
|
|
- cursor: "pointer",
|
|
|
- userSelect: "none",
|
|
|
- WebkitUserSelect: "none",
|
|
|
- MozUserSelect: "none",
|
|
|
- msUserSelect: "none",
|
|
|
- }}
|
|
|
- onClick={handleToggleExpand}>
|
|
|
+ }}>
|
|
|
<div style={{ display: "flex", alignItems: "center", gap: "10px", flexGrow: 1 }}>
|
|
|
{icon}
|
|
|
{title}
|
|
|
@@ -1101,17 +1079,6 @@ export const ChatRowContent = ({
|
|
|
}
|
|
|
/>
|
|
|
)}
|
|
|
-
|
|
|
- {isExpanded && (
|
|
|
- <div className="ml-6" style={{ marginTop: "10px" }}>
|
|
|
- <CodeAccordian
|
|
|
- code={safeJsonParse<any>(message.text)?.request}
|
|
|
- language="markdown"
|
|
|
- isExpanded={true}
|
|
|
- onToggleExpand={handleToggleExpand}
|
|
|
- />
|
|
|
- </div>
|
|
|
- )}
|
|
|
</>
|
|
|
)
|
|
|
case "api_req_finished":
|