Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(ws): include issue_id in task:dispatch event to prevent cross-issue UI glitch
Jiang Bohanb271e8915e44
diff --git a/packages/views/issues/components/agent-live-card.tsx b/packages/views/issues/components/agent-live-card.tsxindex 633bfc48ed..dd58721115 100644--- a/packages/views/issues/components/agent-live-card.tsx+++ b/packages/views/issues/components/agent-live-card.tsx@@ -208,7 +208,9 @@ export function AgentLiveCard({ issueId }: AgentLiveCardProps) {// Pick up newly dispatched tasksuseWSEvent("task:dispatch",- useCallback(() => {+ useCallback((payload: unknown) => {+ const p = payload as { issue_id?: string };+ if (p.issue_id && p.issue_id !== issueId) return;api.getActiveTasksForIssue(issueId).then(({ tasks }) => {setTaskStates((prev) => {const next = new Map(prev);diff --git a/server/internal/service/task.go b/server/internal/service/task.goindex b15893fc82..f0ff5b3bee 100644--- a/server/internal/service/task.go+++ b/server/internal/service/task.go@@ -461,6 +461,8 @@ func (s *TaskService) broadcastTaskDispatch(ctx context.Context, task db.AgentTa}payload["task_id"] = util.UUIDToString(task.ID)payload["runtime_id"] = util.UUIDToString(task.RuntimeID)+ payload["issue_id"] = util.UUIDToString(task.IssueID)+ payload["agent_id"] = util.UUIDToString(task.AgentID)workspaceID := s.resolveTaskWorkspaceID(ctx, task)if workspaceID == "" {