Remove double todo list (#9517)

This commit is contained in:
Matt Rubens 2025-11-23 12:54:14 -05:00 committed by GitHub
parent cdc72750e4
commit 98b06d84be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,7 +160,6 @@ export const ChatRowContent = ({
onSuggestionClick,
onFollowUpUnmount,
onBatchFileResponse,
editable,
isFollowUpAnswered,
}: ChatRowContentProps) => {
const { t } = useTranslation()
@ -540,21 +539,7 @@ export const ChatRowContent = ({
// Get previous todos from the latest todos in the task context
const previousTodos = getPreviousTodos(clineMessages, message.ts)
return (
<>
<TodoChangeDisplay previousTodos={previousTodos} newTodos={todos} />
<UpdateTodoListToolBlock
todos={todos}
content={(tool as any).content}
onChange={(updatedTodos) => {
if (typeof vscode !== "undefined" && vscode?.postMessage) {
vscode.postMessage({ type: "updateTodoList", payload: { todos: updatedTodos } })
}
}}
editable={!!(editable && isLast)}
/>
</>
)
return <TodoChangeDisplay previousTodos={previousTodos} newTodos={todos} />
}
case "newFileCreated":
return (