File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/browser/components/tools Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import { FileIcon } from "@/browser/components/FileIcon" ;
23import { parsePatch } from "diff" ;
34import type {
45 FileEditInsertToolArgs ,
@@ -138,7 +139,10 @@ export const FileEditToolCall: React.FC<FileEditToolCallProps> = ({
138139 < span > ✏️</ span >
139140 < Tooltip > { toolName } </ Tooltip >
140141 </ TooltipWrapper >
141- < span className = "text-text font-monospace max-w-96 truncate" > { filePath } </ span >
142+ < div className = "text-text flex max-w-96 min-w-0 items-center gap-1.5" >
143+ < FileIcon filePath = { filePath } className = "text-[15px] leading-none" />
144+ < span className = "font-monospace truncate" > { filePath } </ span >
145+ </ div >
142146 </ div >
143147 { ! ( result && result . success && result . diff ) && (
144148 < StatusIndicator status = { status } > { getStatusDisplay ( status ) } </ StatusIndicator >
Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import { FileIcon } from "@/browser/components/FileIcon" ;
23import type { FileReadToolArgs , FileReadToolResult } from "@/common/types/tools" ;
34import {
45 ToolContainer ,
@@ -82,7 +83,10 @@ export const FileReadToolCall: React.FC<FileReadToolCallProps> = ({
8283 < span > 📖</ span >
8384 < Tooltip > file_read</ Tooltip >
8485 </ TooltipWrapper >
85- < span className = "text-text font-monospace max-w-96 truncate" > { filePath } </ span >
86+ < div className = "text-text flex max-w-96 min-w-0 items-center gap-1.5" >
87+ < FileIcon filePath = { filePath } className = "text-[15px] leading-none" />
88+ < span className = "font-monospace truncate" > { filePath } </ span >
89+ </ div >
8690 { result && result . success && parsedContent && (
8791 < span className = "text-secondary ml-2 text-[10px] whitespace-nowrap" >
8892 < span className = "hidden @sm:inline" > read </ span >
You can’t perform that action at this time.
0 commit comments