From 0613b1f307bee8419fb9cede07aad9526bf85585 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 23 Jun 2025 14:26:42 +0800 Subject: [PATCH] fix: unfinished todos count (#2306) --- lua/avante/llm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua index 87c63ce..d53a315 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -822,7 +822,7 @@ function M._stream(opts) if opts.get_todos then local todos = opts.get_todos() unfinished_todos = vim.tbl_filter( - function(todo) return todo.status ~= "done" or todo.status ~= "cancelled" end, + function(todo) return todo.status ~= "done" and todo.status ~= "cancelled" end, todos ) end