add bool value: tdd to sisyphus_agent config

This commit is contained in:
Ryan Dielhenn
2026-03-28 09:34:58 -07:00
parent 44b039bef6
commit 571dfe23a4
11 changed files with 63 additions and 12 deletions
+29
View File
@@ -3129,6 +3129,35 @@ describe("sisyphus-task", () => {
// then
expect(result).toBe(prompt)
})
test("excludes TDD line when tddEnabled is false", () => {
// given
const { buildTaskPrompt } = require("./tools")
const prompt = "Create a work plan for this feature"
// when
const result = buildTaskPrompt(prompt, "plan", false)
// then
expect(result).toContain(prompt)
expect(result).toContain("Answer in English.")
expect(result).toContain("Write the plan in English.")
expect(result).toContain("Plan well for ultrawork execution.")
expect(result).toContain("Include a clear atomic commit strategy.")
expect(result).not.toContain("Use TDD-oriented planning.")
})
test("includes TDD line when tddEnabled is true", () => {
// given
const { buildTaskPrompt } = require("./tools")
const prompt = "Create a work plan for this feature"
// when
const result = buildTaskPrompt(prompt, "plan", true)
// then
expect(result).toContain("Use TDD-oriented planning.")
})
})
describe("modelInfo detection via resolveCategoryConfig", () => {