From 7badaf02b9970ebddbb6c8487cd95549fbfd3d68 Mon Sep 17 00:00:00 2001 From: MyPrototypeWhat Date: Wed, 29 Oct 2025 20:37:54 +0800 Subject: [PATCH] fix(TodoWriteTool): remove output rendering from TodoWriteTool component (#11035) * fix: remove output rendering from TodoWriteTool component * refactor: remove output parameter from TodoWriteTool component --- .../Messages/Tools/MessageAgentTools/TodoWriteTool.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/pages/home/Messages/Tools/MessageAgentTools/TodoWriteTool.tsx b/src/renderer/src/pages/home/Messages/Tools/MessageAgentTools/TodoWriteTool.tsx index 257926cf9..bdc024c73 100644 --- a/src/renderer/src/pages/home/Messages/Tools/MessageAgentTools/TodoWriteTool.tsx +++ b/src/renderer/src/pages/home/Messages/Tools/MessageAgentTools/TodoWriteTool.tsx @@ -2,11 +2,7 @@ import { AccordionItem, Card, CardBody, Chip } from '@heroui/react' import { CheckCircle, Circle, Clock, ListTodo } from 'lucide-react' import { ToolTitle } from './GenericTools' -import type { - TodoItem, - TodoWriteToolInput as TodoWriteToolInputType, - TodoWriteToolOutput as TodoWriteToolOutputType -} from './types' +import type { TodoItem, TodoWriteToolInput as TodoWriteToolInputType } from './types' import { AgentToolsType } from './types' const getStatusConfig = (status: TodoItem['status']) => { @@ -34,7 +30,7 @@ const getStatusConfig = (status: TodoItem['status']) => { } } -export function TodoWriteTool({ input, output }: { input: TodoWriteToolInputType; output?: TodoWriteToolOutputType }) { +export function TodoWriteTool({ input }: { input: TodoWriteToolInputType }) { const doneCount = input.todos.filter((todo) => todo.status === 'completed').length return ( - {output} ) }