diff --git a/web/src/app/_components/research-activities-block.tsx b/web/src/app/_components/research-activities-block.tsx index 39faf83..846bff9 100644 --- a/web/src/app/_components/research-activities-block.tsx +++ b/web/src/app/_components/research-activities-block.tsx @@ -5,9 +5,11 @@ import { PythonOutlined } from "@ant-design/icons"; import { motion } from "framer-motion"; import { LRUCache } from "lru-cache"; import { BookOpenText, PencilRuler, Search } from "lucide-react"; +import { useTheme } from "next-themes"; import { useMemo } from "react"; import SyntaxHighlighter from "react-syntax-highlighter"; import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs"; +import { dark } from "react-syntax-highlighter/dist/esm/styles/prism"; import { Accordion, @@ -272,6 +274,7 @@ function PythonToolCall({ toolCall }: { toolCall: ToolCallRuntime }) { const code = useMemo(() => { return (toolCall.args as { code: string }).code; }, [toolCall.args]); + const { resolvedTheme } = useTheme(); return (
@@ -286,9 +289,11 @@ function PythonToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
{code} @@ -300,6 +305,7 @@ function PythonToolCall({ toolCall }: { toolCall: ToolCallRuntime }) { function MCPToolCall({ toolCall }: { toolCall: ToolCallRuntime }) { const tool = useMemo(() => findMCPTool(toolCall.name), [toolCall.name]); + const { resolvedTheme } = useTheme(); return (
@@ -322,9 +328,13 @@ function MCPToolCall({ toolCall }: { toolCall: ToolCallRuntime }) { {toolCall.result && (
{toolCall.result}