Skip to content

Commit b23b911

Browse files
mjunaidcaclaude
andcommitted
fix(api): Remove non-existent description field from workers endpoint
The Worker model has no 'description' field. This was causing 500 errors on the /api/workers endpoint. Replaced with 'agent_type' and 'capabilities' which are actual fields. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2f61205 commit b23b911

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/api/src/taskflow_api/routers/workers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ async def list_workers(
180180
"handle": w.handle,
181181
"name": w.name,
182182
"type": w.type,
183-
"description": w.description,
183+
"agent_type": w.agent_type,
184+
"capabilities": w.capabilities,
184185
}
185186
for w in result.all()
186187
]

0 commit comments

Comments
 (0)