From 6bcc3c33f01f9595d479ea5bd9c310815c3b0fc0 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 1 Feb 2026 19:45:09 +0900 Subject: [PATCH] refactor(background-agent): show category in task completion notification Add agent category info to the task completion notification for better visibility of what category was used for the task. --- src/features/background-agent/result-handler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/features/background-agent/result-handler.ts b/src/features/background-agent/result-handler.ts index fb32f1b8..7569dd5f 100644 --- a/src/features/background-agent/result-handler.ts +++ b/src/features/background-agent/result-handler.ts @@ -189,10 +189,14 @@ ${completedTasks || `- \`${task.id}\`: ${task.description}`} Use \`background_output(task_id="")\` to retrieve each result. ` } else { + const agentInfo = task.category + ? `${task.agent} (${task.category})` + : task.agent notification = ` [BACKGROUND TASK ${statusText}] **ID:** \`${task.id}\` **Description:** ${task.description} +**Agent:** ${agentInfo} **Duration:** ${duration}${errorInfo} **${remainingCount} task${remainingCount === 1 ? "" : "s"} still in progress.** You WILL be notified when ALL complete.