Fix imported agent bundle frontmatter leakage

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-03-23 20:04:40 -05:00
parent eeb7e1a91a
commit e4e5b61596
2 changed files with 13 additions and 0 deletions

View file

@ -2108,5 +2108,8 @@ describe("company portability", () => {
replaceExisting: true,
}),
);
const materializedFiles = agentInstructionsSvc.materializeManagedBundle.mock.calls[0]?.[1] as Record<string, string>;
expect(materializedFiles["AGENTS.md"]).not.toMatch(/^---\n/);
expect(materializedFiles["AGENTS.md"]).not.toContain('name: "ClaudeCoder"');
});
});