Handle nested imported AGENTS edge case
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user