From 078c9f008a8e15a9760d8a6a70102dc3cac50a1a Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 23 May 2026 02:12:50 +0900 Subject: [PATCH] =?UTF-8?q?fix(agent-office):=20/agents/{id}/tasks=20respo?= =?UTF-8?q?nse=EC=97=90=20tasks/items=20=EC=96=91=EC=AA=BD=20=ED=82=A4=20?= =?UTF-8?q?=EC=9C=A0=EC=A7=80=20(backward=20compat)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent-office/app/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent-office/app/main.py b/agent-office/app/main.py index ef70bc1..fbb60df 100644 --- a/agent-office/app/main.py +++ b/agent-office/app/main.py @@ -111,7 +111,9 @@ def agent_tasks( task_type: Optional[str] = None, days: Optional[int] = None, ): - return {"items": get_agent_tasks(agent_id, limit=limit, task_type=task_type, days=days)} + tasks_list = get_agent_tasks(agent_id, limit=limit, task_type=task_type, days=days) + # Backward compat: 기존 client는 'tasks', 신규 client는 'items' 사용 + return {"tasks": tasks_list, "items": tasks_list} @app.get("/api/agent-office/agents/{agent_id}/logs") def agent_logs(agent_id: str, limit: int = 50):