Skip to content

Commit 277029b

Browse files
committed
Remove double todo list
1 parent cdc7275 commit 277029b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export const ChatRowContent = ({
160160
onSuggestionClick,
161161
onFollowUpUnmount,
162162
onBatchFileResponse,
163-
editable,
164163
isFollowUpAnswered,
165164
}: ChatRowContentProps) => {
166165
const { t } = useTranslation()
@@ -540,21 +539,7 @@ export const ChatRowContent = ({
540539
// Get previous todos from the latest todos in the task context
541540
const previousTodos = getPreviousTodos(clineMessages, message.ts)
542541

543-
return (
544-
<>
545-
<TodoChangeDisplay previousTodos={previousTodos} newTodos={todos} />
546-
<UpdateTodoListToolBlock
547-
todos={todos}
548-
content={(tool as any).content}
549-
onChange={(updatedTodos) => {
550-
if (typeof vscode !== "undefined" && vscode?.postMessage) {
551-
vscode.postMessage({ type: "updateTodoList", payload: { todos: updatedTodos } })
552-
}
553-
}}
554-
editable={!!(editable && isLast)}
555-
/>
556-
</>
557-
)
542+
return <TodoChangeDisplay previousTodos={previousTodos} newTodos={todos} />
558543
}
559544
case "newFileCreated":
560545
return (

0 commit comments

Comments
 (0)