mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: remove MCP image preview thumbnails, keep only intermediate file persistence
This commit is contained in:
parent
f3eaa464fa
commit
98bed42dec
3 changed files with 0 additions and 23 deletions
|
|
@ -119,7 +119,6 @@ interface ChatRowProps {
|
|||
onFollowUpUnmount?: () => void
|
||||
isFollowUpAnswered?: boolean
|
||||
isFollowUpAutoApprovalPaused?: boolean
|
||||
mcpResponseImages?: string[]
|
||||
editable?: boolean
|
||||
hasCheckpoint?: boolean
|
||||
}
|
||||
|
|
@ -174,7 +173,6 @@ export const ChatRowContent = ({
|
|||
onBatchFileResponse,
|
||||
isFollowUpAnswered,
|
||||
isFollowUpAutoApprovalPaused,
|
||||
mcpResponseImages,
|
||||
}: ChatRowContentProps) => {
|
||||
const { t, i18n } = useTranslation()
|
||||
|
||||
|
|
@ -1629,7 +1627,6 @@ export const ChatRowContent = ({
|
|||
server={server}
|
||||
useMcpServer={useMcpServer}
|
||||
alwaysAllowMcp={alwaysAllowMcp}
|
||||
images={mcpResponseImages ?? message.images}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1327,15 +1327,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
return <BrowserSessionStatusRow key={messageOrGroup.ts} message={messageOrGroup} />
|
||||
}
|
||||
|
||||
// For use_mcp_server ask messages, find the corresponding mcp_server_response to get images
|
||||
let mcpResponseImages: string[] | undefined
|
||||
if (messageOrGroup.type === "ask" && messageOrGroup.ask === "use_mcp_server") {
|
||||
const mcpResponse = modifiedMessages.find(
|
||||
(m) => m.ts > messageOrGroup.ts && m.say === "mcp_server_response",
|
||||
)
|
||||
mcpResponseImages = mcpResponse?.images
|
||||
}
|
||||
|
||||
// regular message
|
||||
return (
|
||||
<ChatRow
|
||||
|
|
@ -1351,7 +1342,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
onBatchFileResponse={handleBatchFileResponse}
|
||||
isFollowUpAnswered={messageOrGroup.isAnswered === true || messageOrGroup.ts === currentFollowUpTs}
|
||||
isFollowUpAutoApprovalPaused={isFollowUpAutoApprovalPaused}
|
||||
mcpResponseImages={mcpResponseImages}
|
||||
editable={
|
||||
messageOrGroup.type === "ask" &&
|
||||
messageOrGroup.ask === "tool" &&
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import { cn } from "@src/lib/utils"
|
|||
import { Button } from "@src/components/ui"
|
||||
|
||||
import CodeBlock from "../common/CodeBlock"
|
||||
import Thumbnails from "../common/Thumbnails"
|
||||
import McpToolRow from "../mcp/McpToolRow"
|
||||
|
||||
import { Markdown } from "./Markdown"
|
||||
|
|
@ -37,7 +36,6 @@ interface McpExecutionProps {
|
|||
}
|
||||
useMcpServer?: ClineAskUseMcpServer
|
||||
alwaysAllowMcp?: boolean
|
||||
images?: string[]
|
||||
}
|
||||
|
||||
export const McpExecution = ({
|
||||
|
|
@ -49,7 +47,6 @@ export const McpExecution = ({
|
|||
server,
|
||||
useMcpServer,
|
||||
alwaysAllowMcp = false,
|
||||
images,
|
||||
}: McpExecutionProps) => {
|
||||
const { t } = useTranslation("mcp")
|
||||
|
||||
|
|
@ -292,13 +289,6 @@ export const McpExecution = ({
|
|||
hasArguments={!!(isArguments || useMcpServer?.arguments || argumentsText)}
|
||||
isPartial={status ? status.status !== "completed" : false}
|
||||
/>
|
||||
|
||||
{/* Images section - show thumbnails of returned images */}
|
||||
{images && images.length > 0 && (
|
||||
<div className="mt-2 pt-2 border-t border-border/25">
|
||||
<Thumbnails images={images} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue