From d24903de77bbbaba8f21ce70035ac732e0a57e35 Mon Sep 17 00:00:00 2001 From: nickyleach <331803+nickyleach@users.noreply.github.com> Date: Fri, 11 Sep 2026 23:37:46 +0000 Subject: [PATCH] fix(server): expect inheritedFromAgentId in hire-route claudeLogin call The hire route now passes inheritedFromAgentId in the claudeLogin options object. Add the field to the exact-match test expectation so the test does not fail on a user-initiated hire. Co-authored-by: Paperclip --- server/src/__tests__/agent-skills-routes.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/src/__tests__/agent-skills-routes.test.ts b/server/src/__tests__/agent-skills-routes.test.ts index 5e8599e08f..a22642f5d5 100644 --- a/server/src/__tests__/agent-skills-routes.test.ts +++ b/server/src/__tests__/agent-skills-routes.test.ts @@ -1397,7 +1397,14 @@ describe.sequential("agent skill routes", () => { }), }), }), - { claudeLogin: { storedSessionId: null, ownerUserId: "local-board", applyExistingWithoutClaim: false } }, + { + claudeLogin: { + storedSessionId: null, + ownerUserId: "local-board", + applyExistingWithoutClaim: false, + inheritedFromAgentId: null, + }, + }, ); expect(mockApprovalService.create).toHaveBeenCalledWith( "company-1",