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.
This commit is contained in:
YeonGyu-Kim 2026-02-01 19:45:09 +09:00
parent b6da473341
commit 6bcc3c33f0

View File

@ -189,10 +189,14 @@ ${completedTasks || `- \`${task.id}\`: ${task.description}`}
Use \`background_output(task_id="<id>")\` to retrieve each result.
</system-reminder>`
} else {
const agentInfo = task.category
? `${task.agent} (${task.category})`
: task.agent
notification = `<system-reminder>
[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.