diff --git a/src/core/prompts/__tests__/system-prompt.spec.ts b/src/core/prompts/__tests__/system-prompt.spec.ts index 4d5579408c..f7c7cc66f1 100644 --- a/src/core/prompts/__tests__/system-prompt.spec.ts +++ b/src/core/prompts/__tests__/system-prompt.spec.ts @@ -580,6 +580,7 @@ describe("SYSTEM_PROMPT", () => { maxConcurrentFileReads: 5, todoListEnabled: false, useAgentRules: true, + alwaysAllowFollowupQuestions: true, } const prompt = await SYSTEM_PROMPT( @@ -612,6 +613,7 @@ describe("SYSTEM_PROMPT", () => { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true, + alwaysAllowFollowupQuestions: true, } const prompt = await SYSTEM_PROMPT( @@ -643,6 +645,7 @@ describe("SYSTEM_PROMPT", () => { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true, + alwaysAllowFollowupQuestions: true, } const prompt = await SYSTEM_PROMPT( diff --git a/src/core/prompts/sections/__tests__/custom-instructions.spec.ts b/src/core/prompts/sections/__tests__/custom-instructions.spec.ts index d015748315..d548ff964e 100644 --- a/src/core/prompts/sections/__tests__/custom-instructions.spec.ts +++ b/src/core/prompts/sections/__tests__/custom-instructions.spec.ts @@ -535,7 +535,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: true, + alwaysAllowFollowupQuestions: true, + }, + }, ) expect(result).toContain("# Agent Rules Standard (AGENTS.md):") @@ -560,7 +567,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: false } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: false, + alwaysAllowFollowupQuestions: true, + }, + }, ) expect(result).not.toContain("# Agent Rules Standard (AGENTS.md):") @@ -614,7 +628,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: true, + alwaysAllowFollowupQuestions: true, + }, + }, ) expect(result).toContain("Global Instructions:\nglobal instructions") @@ -653,7 +674,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: true, + alwaysAllowFollowupQuestions: true, + }, + }, ) // Should contain both AGENTS.md and .roorules content @@ -714,7 +742,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: true, + alwaysAllowFollowupQuestions: true, + }, + }, ) expect(result).toContain("# Agent Rules Standard (AGENTS.md):") @@ -759,7 +794,14 @@ describe("addCustomInstructions", () => { "global instructions", "/fake/path", "test-mode", - { settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } }, + { + settings: { + maxConcurrentFileReads: 5, + todoListEnabled: true, + useAgentRules: true, + alwaysAllowFollowupQuestions: true, + }, + }, ) expect(result).toContain("# Agent Rules Standard (AGENTS.md):")