From 31d8d9b32a3ac68d3d939bd080eeb780c37f17d7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 15 Jul 2026 23:42:29 +0000 Subject: fix(agent): pass project_id through on Agent API task creation HandleAgentTaskCreate decoded project_id from the request but never forwarded it to CreateNativeTask, so a task created via the external Agent API with a project assigned would silently create the task unassigned instead. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01VTUSAEKfsPc6WGDq45yPHD --- internal/handlers/agent.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal/handlers/agent.go') diff --git a/internal/handlers/agent.go b/internal/handlers/agent.go index cf1eaa1..151520b 100644 --- a/internal/handlers/agent.go +++ b/internal/handlers/agent.go @@ -592,10 +592,11 @@ func (h *Handler) HandleAgentTaskCreate(w http.ResponseWriter, r *http.Request) priority = 1 } task := models.Task{ - ID: newID(), - Content: req.Title, - DueDate: req.DueDate, - Priority: priority, + ID: newID(), + Content: req.Title, + DueDate: req.DueDate, + Priority: priority, + ProjectID: req.ProjectID, } err = h.store.CreateNativeTask(task) case "trello": -- cgit v1.2.3