From 4a1b228d953b1accd8210285f281bbe242ef07f0 Mon Sep 17 00:00:00 2001 From: 437147838 <437147838@qq.com> Date: Sat, 30 May 2026 23:59:48 +0800 Subject: [PATCH] fix: remove redundant .to_dict() call in list_tasks API TaskManager.list_tasks() already returns serialized dicts, so calling .to_dict() on each item causes AttributeError: 'dict' object has no attribute 'to_dict' Fixes: AttributeError in /api/graph/tasks endpoint --- backend/app/api/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/graph.py b/backend/app/api/graph.py index 759ff48b0e..ba9f458feb 100644 --- a/backend/app/api/graph.py +++ b/backend/app/api/graph.py @@ -559,7 +559,7 @@ def list_tasks(): return jsonify({ "success": True, - "data": [t.to_dict() for t in tasks], + "data": tasks, # list_tasks() already returns to_dict() results "count": len(tasks) })