feat(KB-086): add missing task:deleted listener and complete test coverage

This commit is contained in:
gsxdsm
2026-03-30 18:22:22 -07:00
parent 22dcee1279
commit e36593bf88
2 changed files with 67 additions and 0 deletions

View File

@@ -141,6 +141,18 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
});
}
});
// Task deleted
this.on("task:deleted", (task) => {
this.recordActivity({
type: "task:deleted",
taskId: task.id,
taskTitle: task.title,
details: `Task ${task.id} deleted${task.title ? `: ${task.title}` : ""}`,
}).catch(() => {
// Best-effort: ignore recording errors
});
});
}
/**