From 565a2bf59e3f8288beeb70ee0837f34bc45c1b9d Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 9 Jul 2026 18:56:40 +0000 Subject: [PATCH] Fix company skill rebase integration Co-Authored-By: Paperclip --- server/src/__tests__/company-skills-routes.test.ts | 2 +- server/src/routes/company-skills.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/company-skills-routes.test.ts b/server/src/__tests__/company-skills-routes.test.ts index 32c3ef9961f..44f32b0e734 100644 --- a/server/src/__tests__/company-skills-routes.test.ts +++ b/server/src/__tests__/company-skills-routes.test.ts @@ -1259,7 +1259,7 @@ describe("company skill mutation permissions", () => { expect(res.status, JSON.stringify(res.body)).toBe(201); expect(mockReflectionCoachMutationGate.assertConsented).toHaveBeenCalledWith({ companyId: "company-1", - actorAgentId: "agent-1", + actorAgentId: "55555555-5555-4555-8555-555555555555", actorRunId: "run-1", targetKeys: ["skill-import:https://github.com/vercel-labs/agent-browser"], }); diff --git a/server/src/routes/company-skills.ts b/server/src/routes/company-skills.ts index 1f8c094090a..a25848387d9 100644 --- a/server/src/routes/company-skills.ts +++ b/server/src/routes/company-skills.ts @@ -120,7 +120,7 @@ export function companySkillRoutes(db: Db) { return targetKeys; } - async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[]) { + async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[] = []) { assertCompanyAccess(req, companyId); const decision = await access.decide({ actor: req.actor,