From c95b0135bf7403bd0ed8a6f0ed94fd2b010ebb03 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Fri, 3 Apr 2026 14:14:21 +0800 Subject: [PATCH] fix(server): broadcast task:dispatch for mention-triggered tasks EnqueueTaskForMention was missing the broadcastTaskDispatch call, so the frontend never received a WebSocket event when an agent was triggered via @mention in comments. This caused the AgentLiveCard to not show the running state until page refresh. --- server/internal/service/task.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/internal/service/task.go b/server/internal/service/task.go index 92d602cfe..a85df7e10 100644 --- a/server/internal/service/task.go +++ b/server/internal/service/task.go @@ -105,6 +105,7 @@ func (s *TaskService) EnqueueTaskForMention(ctx context.Context, issue db.Issue, } slog.Info("mention task enqueued", "task_id", util.UUIDToString(task.ID), "issue_id", util.UUIDToString(issue.ID), "agent_id", util.UUIDToString(agentID)) + s.broadcastTaskDispatch(ctx, task) return task, nil }