Matt Rubens пре 1 месец
родитељ
комит
98b06d84be
1 измењених фајлова са 1 додато и 16 уклоњено
  1. 1 16
      webview-ui/src/components/chat/ChatRow.tsx

+ 1 - 16
webview-ui/src/components/chat/ChatRow.tsx

@@ -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 (