Skip to content

The open-source app everyone uses to manage agents at work

fix: use agent role instead of adapter type in task_completed telemetry

dottac18b3cb4140f
diff --git a/server/src/routes/issues.ts b/server/src/routes/issues.ts
index e815f8aec3..5eb0b83e2b 100644
--- a/server/src/routes/issues.ts
+++ b/server/src/routes/issues.ts
@@ -1184,7 +1184,7 @@ export function issueRoutes(db: Db, storage: StorageService) {
if (tc && actor.agentId) {
const actorAgent = await agentsSvc.getById(actor.agentId);
if (actorAgent) {
- trackAgentTaskCompleted(tc, { agentRole: actorAgent.adapterType });
+ trackAgentTaskCompleted(tc, { agentRole: actorAgent.role });
}
}
}