fix: auto-assign tasks to PM agent when moved to in_progress, fix datetime serialization in WebSocket, add executor logging
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 2m19s
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Backend Tests (push) Has started running
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-04-02 10:22:15 +08:00
parent 21d0cd9ff6
commit 2c8f4fcd5c
3 changed files with 43 additions and 4 deletions
+11
View File
@@ -217,6 +217,17 @@ async def move_task(
actor=user.username
)
# Auto-assign to default agent (PM) if not already assigned
if not current_task.get("assigned_to"):
updates["assigned_to"] = "pm"
updates["assigned_type"] = "agent"
# Create agent execution record
await opc_db.create_agent_execution(
task_id=task_id,
agent_id="pm",
actor=user.username
)
if old_status == "in_progress" and move.status != "in_progress":
await opc_db.stop_time_entry(task_id=task_id)