From d4619f0744077ffafabc1b61242968cb45dfba48 Mon Sep 17 00:00:00 2001 From: LE Quoc Dat Date: Mon, 28 Jul 2025 22:19:34 +0200 Subject: [PATCH] AI: How can we stream the edit_file tool when it generating like create_file ? Also the edit_file tool show this """Invalid File Edit Could not extract the file changes from the tool result.""" Check the state of code base and make to sure implement fully --- frontend/src/components/thread/content/ShowToolStream.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/thread/content/ShowToolStream.tsx b/frontend/src/components/thread/content/ShowToolStream.tsx index a5118d5b..2f484fad 100644 --- a/frontend/src/components/thread/content/ShowToolStream.tsx +++ b/frontend/src/components/thread/content/ShowToolStream.tsx @@ -2,6 +2,8 @@ import React, { useEffect, useRef, useState } from 'react'; import { CircleDashed } from 'lucide-react'; import { extractToolNameFromStream } from '@/components/thread/tool-views/xml-parser'; import { getToolIcon, getUserFriendlyToolName, extractPrimaryParam } from '@/components/thread/utils'; +import { CodeBlockCode } from '@/components/ui/code-block'; +import { getLanguageFromFileName } from '../tool-views/file-operation/_utils'; // Only show streaming for file operation tools const FILE_OPERATION_TOOLS = new Set([