From 94417ec99b348afdf722ada10720690eedc9acce Mon Sep 17 00:00:00 2001 From: ata <111813260+atacolak@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:10:25 +1000 Subject: [PATCH] test(tui): use generic names in subagent HUD fixtures Keep the role-badge and echoed-id cases, but drop the session-specific spawn handle from the source tree. --- .../test/subagent-hud-render.test.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/coding-agent/test/subagent-hud-render.test.ts b/packages/coding-agent/test/subagent-hud-render.test.ts index 2543235e0..e6fede4d3 100644 --- a/packages/coding-agent/test/subagent-hud-render.test.ts +++ b/packages/coding-agent/test/subagent-hud-render.test.ts @@ -110,40 +110,40 @@ describe("subagent HUD lines", () => { it("shows a non-default role badge and hides descriptions that only echo the id", () => { const withRole = render([ makeSession({ - id: "HindsightMcpFunnel", + id: "AuthLoader", agent: "scout", - description: "Audit MCP funnel wiring", + description: "Refactor the auth flow", }), ]); - expect(withRole).toContain("HindsightMcpFunnel"); - expect(withRole).toMatch(/HindsightMcpFunnel.*scout/); - expect(withRole).toContain("Audit MCP funnel wiring"); + expect(withRole).toContain("AuthLoader"); + expect(withRole).toMatch(/AuthLoader.*scout/); + expect(withRole).toContain("Refactor the auth flow"); const echoed = render([ makeSession({ - id: "HindsightMcpFunnel", + id: "AuthLoader", agent: "scout", - description: "HindsightMcpFunnel", + description: "AuthLoader", }), ]); - expect(echoed).toContain("HindsightMcpFunnel"); - expect(echoed).toMatch(/HindsightMcpFunnel.*scout/); - expect(echoed).not.toContain("HindsightMcpFunnel: HindsightMcpFunnel"); + expect(echoed).toContain("AuthLoader"); + expect(echoed).toMatch(/AuthLoader.*scout/); + expect(echoed).not.toContain("AuthLoader: AuthLoader"); const collision = render([ makeSession({ - id: "HindsightMcpFunnel-3", + id: "AuthLoader-3", agent: "scout", - description: "HindsightMcpFunnel", + description: "AuthLoader", }), ]); - expect(collision).toContain("HindsightMcpFunnel-3"); - expect(collision).toMatch(/HindsightMcpFunnel-3.*scout/); - expect(collision).not.toContain("HindsightMcpFunnel-3: HindsightMcpFunnel"); + expect(collision).toContain("AuthLoader-3"); + expect(collision).toMatch(/AuthLoader-3.*scout/); + expect(collision).not.toContain("AuthLoader-3: AuthLoader"); - const defaultWorker = render([makeSession({ id: "AuthLoader", agent: "task", description: "Refactor auth" })]); - expect(defaultWorker).toContain("AuthLoader: Refactor auth"); - expect(defaultWorker).not.toMatch(/AuthLoader.*task/); + const defaultWorker = render([makeSession({ id: "SchemaMigrator", agent: "task", description: "Migrate users" })]); + expect(defaultWorker).toContain("SchemaMigrator: Migrate users"); + expect(defaultWorker).not.toMatch(/SchemaMigrator.*task/); }); it("only shows active subagents and clears once everything finished", () => {