tweak: adjust order of system prompt instructions: Global, Project, Skills (#24974)

This commit is contained in:
Aiden Cline
2026-04-29 10:55:53 -05:00
committed by GitHub
parent 71f9189607
commit 00bb9836a6
3 changed files with 12 additions and 12 deletions

View File

@@ -251,12 +251,12 @@ describe("Instruction.system", () => {
const rules = yield* svc.system()
expect(rules).toHaveLength(2)
expect(rules).toContain(
`Instructions from: ${path.join(projectTmp.path, "AGENTS.md")}\n# Project Instructions`,
)
expect(rules).toContain(
expect(rules[0]).toBe(
`Instructions from: ${path.join(globalTmp.path, "AGENTS.md")}\n# Global Instructions`,
)
expect(rules[1]).toBe(
`Instructions from: ${path.join(projectTmp.path, "AGENTS.md")}\n# Project Instructions`,
)
}),
),
),