Skip to content

Commit 2c66e8b

Browse files
committed
Revert "Show diffs in todo list updates"
This reverts commit 547387f.
1 parent f41260e commit 2c66e8b

File tree

21 files changed

+223
-861
lines changed

21 files changed

+223
-861
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const ChatRowContent = ({
107107
editable,
108108
}: ChatRowContentProps) => {
109109
const { t } = useTranslation()
110-
const { mcpServers, alwaysAllowMcp, currentCheckpoint, clineMessages } = useExtensionState()
110+
const { mcpServers, alwaysAllowMcp, currentCheckpoint } = useExtensionState()
111111
const [reasoningCollapsed, setReasoningCollapsed] = useState(true)
112112
const [isDiffErrorExpanded, setIsDiffErrorExpanded] = useState(false)
113113
const [showCopySuccess, setShowCopySuccess] = useState(false)
@@ -436,31 +436,9 @@ export const ChatRowContent = ({
436436
}
437437
case "updateTodoList" as any: {
438438
const todos = (tool as any).todos || []
439-
440-
// Try to find previous todo list from earlier messages
441-
const currentMessageIndex = clineMessages.findIndex((msg) => msg.ts === message.ts)
442-
let previousTodos: any[] = []
443-
444-
// Look backwards through messages to find the most recent updateTodoList
445-
for (let i = currentMessageIndex - 1; i >= 0; i--) {
446-
const prevMessage = clineMessages[i]
447-
if (prevMessage.ask === "tool" && prevMessage.text) {
448-
try {
449-
const prevTool = JSON.parse(prevMessage.text)
450-
if (prevTool.tool === "updateTodoList" && prevTool.todos) {
451-
previousTodos = prevTool.todos
452-
break
453-
}
454-
} catch {
455-
// Ignore parsing errors
456-
}
457-
}
458-
}
459-
460439
return (
461440
<UpdateTodoListToolBlock
462441
todos={todos}
463-
previousTodos={previousTodos}
464442
content={(tool as any).content}
465443
onChange={(updatedTodos) => {
466444
if (typeof vscode !== "undefined" && vscode?.postMessage) {

0 commit comments

Comments
 (0)