Handle nested imported AGENTS edge case

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dottaandPaperclip committed 2026-03-23 20:56:34 -05:00
1 parent e4e5b61596
commit 08bdc3d28e
2 files changed
+71 -1

No files matched your search

+1 -1
View File
@@ -3870,7 +3870,7 @@ export function companyPortabilityService(db: Db, storage?: StorageService) {
if (typeof markdownRaw === "string") {
const importedInstructionsBody = parseFrontmatterMarkdown(markdownRaw).body;
bundleFiles[entryRelativePath] = importedInstructionsBody;
if (entryRelativePath !== "AGENTS.md" && !bundleFiles["AGENTS.md"]) {
if (entryRelativePath !== "AGENTS.md") {
bundleFiles["AGENTS.md"] = importedInstructionsBody;
}
}