Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(server): add missing WorkspaceID to agent comment creation (#688)
jayavibhavnk41d4ac387712
diff --git a/server/internal/service/task.go b/server/internal/service/task.goindex bb18181e4c..822977b44e 100644--- a/server/internal/service/task.go+++ b/server/internal/service/task.go@@ -554,12 +554,13 @@ func (s *TaskService) createAgentComment(ctx context.Context, issueID, agentID p// Expand bare issue identifiers (e.g. MUL-117) into mention links.content = mention.ExpandIssueIdentifiers(ctx, s.Queries, issue.WorkspaceID, content)comment, err := s.Queries.CreateComment(ctx, db.CreateCommentParams{- IssueID: issueID,- AuthorType: "agent",- AuthorID: agentID,- Content: content,- Type: commentType,- ParentID: parentID,+ IssueID: issueID,+ WorkspaceID: issue.WorkspaceID,+ AuthorType: "agent",+ AuthorID: agentID,+ Content: content,+ Type: commentType,+ ParentID: parentID,})if err != nil {return