Matt Rubens 1 месяц назад
Родитель
Сommit
cdc72750e4
1 измененных файлов с 8 добавлено и 7 удалено
  1. 8 7
      webview-ui/src/components/chat/ChatRow.tsx

+ 8 - 7
webview-ui/src/components/chat/ChatRow.tsx

@@ -1004,13 +1004,14 @@ export const ChatRowContent = ({
 						</div>
 						{message.type === "ask" && (
 							<div className="pl-6">
-								<CodeAccordian
-									path={tool.path}
-									code={tool.content}
-									language="text"
-									isExpanded={isExpanded}
-									onToggleExpand={handleToggleExpand}
-								/>
+								<ToolUseBlock>
+									<div className="p-2">
+										<div className="mb-2 break-words">{tool.content}</div>
+										<div className="flex items-center gap-1 text-xs text-vscode-descriptionForeground">
+											{tool.path}
+										</div>
+									</div>
+								</ToolUseBlock>
 							</div>
 						)}
 					</>