From daea94a2edb839791105bb48660c4568214cd7d0 Mon Sep 17 00:00:00 2001 From: dotta Date: Thu, 2 Apr 2026 08:48:06 -0500 Subject: [PATCH] test: align task-completed telemetry assertion with agent role Co-Authored-By: Paperclip --- server/src/__tests__/issue-telemetry-routes.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/issue-telemetry-routes.test.ts b/server/src/__tests__/issue-telemetry-routes.test.ts index ff51f722..22bbee33 100644 --- a/server/src/__tests__/issue-telemetry-routes.test.ts +++ b/server/src/__tests__/issue-telemetry-routes.test.ts @@ -82,10 +82,11 @@ describe("issue telemetry routes", () => { })); }); - it("emits task-completed telemetry with the agent adapter type", async () => { + it("emits task-completed telemetry with the agent role", async () => { mockAgentService.getById.mockResolvedValue({ id: "agent-1", companyId: "company-1", + role: "engineer", adapterType: "codex_local", }); @@ -100,7 +101,7 @@ describe("issue telemetry routes", () => { expect(res.status).toBe(200); expect(mockTrackAgentTaskCompleted).toHaveBeenCalledWith(expect.anything(), { - agentRole: "codex_local", + agentRole: "engineer", }); });