fix: add alwaysAllowFollowupQuestions to test settings objects

This commit is contained in:
Roo Code 2025-08-11 16:36:27 +00:00
parent d89a8f7647
commit 7639054393
2 changed files with 51 additions and 6 deletions

View file

@ -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(

View file

@ -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):")