From 6f85966ec4ff546e990c824b9d8246e8deecc2db Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Sun, 22 Jun 2025 17:34:47 +0000 Subject: [PATCH] fix(api): update agent_runs query to select specific fields for improved data retrieval --- backend/agent/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/agent/api.py b/backend/agent/api.py index 66c8c900..0a5667ca 100644 --- a/backend/agent/api.py +++ b/backend/agent/api.py @@ -515,7 +515,7 @@ async def get_agent_runs(thread_id: str, user_id: str = Depends(get_current_user logger.info(f"Fetching agent runs for thread: {thread_id}") client = await db.client await verify_thread_access(client, thread_id, user_id) - agent_runs = await client.table('agent_runs').select('*').eq("thread_id", thread_id).order('created_at', desc=True).execute() + agent_runs = await client.table('agent_runs').select('id, thread_id, status, started_at, completed_at, error, created_at, updated_at').eq("thread_id", thread_id).order('created_at', desc=True).execute() logger.debug(f"Found {len(agent_runs.data)} agent runs for thread: {thread_id}") return {"agent_runs": agent_runs.data}