From 888f3014b42ff48f597d0a81e9f52104d19be6db Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 21 Mar 2026 21:23:42 +0000 Subject: feat: Phase 2 — project registry, legacy field cleanup, credential path fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - task.Project type + storage CRUD + UpsertProject + SeedProjects - Remove AgentConfig.ProjectDir, RepositoryURL, SkipPlanning - Remove ContainerRunner fallback git init logic - Project API endpoints: GET/POST /api/projects, GET/PUT /api/projects/{id} - processResult no longer extracts changestats (pool-side only) - claude_config_dir config field; default to credentials/claude/ - New scripts: sync-credentials, fix-permissions, check-token Co-Authored-By: Claude Sonnet 4.6 --- internal/api/task_view.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api/task_view.go') diff --git a/internal/api/task_view.go b/internal/api/task_view.go index 5791058..e6e7097 100644 --- a/internal/api/task_view.go +++ b/internal/api/task_view.go @@ -30,12 +30,12 @@ func (s *Server) enrichTask(tk *task.Task) *taskView { if err != nil { if err == sql.ErrNoRows { // No execution yet — still include deployment status (empty commits). - view.DeploymentStatus = deployment.Check(nil, tk.Agent.ProjectDir) + view.DeploymentStatus = deployment.Check(nil, tk.RepositoryURL) } return view } view.Changestats = exec.Changestats - view.DeploymentStatus = deployment.Check(exec.Commits, tk.Agent.ProjectDir) + view.DeploymentStatus = deployment.Check(exec.Commits, tk.RepositoryURL) return view } -- cgit v1.2.3