mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-20 12:54:45 +08:00
feat: use code block to display bash commands
This commit is contained in:
@@ -33,6 +33,7 @@ import { cn } from "@/lib/utils";
|
||||
|
||||
import { useArtifacts } from "../artifacts";
|
||||
import { FlipDisplay } from "../flip-display";
|
||||
import { CodeBlock } from "@/components/ai-elements/code-block";
|
||||
|
||||
export function MessageGroup({
|
||||
className,
|
||||
@@ -300,7 +301,12 @@ function ToolCall({
|
||||
icon={SquareTerminalIcon}
|
||||
>
|
||||
{command && (
|
||||
<ChainOfThoughtSearchResult>{command}</ChainOfThoughtSearchResult>
|
||||
<CodeBlock
|
||||
className="mx-0 border-none px-0"
|
||||
showLineNumbers={false}
|
||||
language="bash"
|
||||
code={command}
|
||||
/>
|
||||
)}
|
||||
</ChainOfThoughtStep>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user