Skip to content

Commit 7639054

Browse files
committed
fix: add alwaysAllowFollowupQuestions to test settings objects
1 parent d89a8f7 commit 7639054

File tree

2 files changed

+51
-6
lines changed

2 files changed

+51
-6
lines changed

src/core/prompts/__tests__/system-prompt.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ describe("SYSTEM_PROMPT", () => {
580580
maxConcurrentFileReads: 5,
581581
todoListEnabled: false,
582582
useAgentRules: true,
583+
alwaysAllowFollowupQuestions: true,
583584
}
584585

585586
const prompt = await SYSTEM_PROMPT(
@@ -612,6 +613,7 @@ describe("SYSTEM_PROMPT", () => {
612613
maxConcurrentFileReads: 5,
613614
todoListEnabled: true,
614615
useAgentRules: true,
616+
alwaysAllowFollowupQuestions: true,
615617
}
616618

617619
const prompt = await SYSTEM_PROMPT(
@@ -643,6 +645,7 @@ describe("SYSTEM_PROMPT", () => {
643645
maxConcurrentFileReads: 5,
644646
todoListEnabled: true,
645647
useAgentRules: true,
648+
alwaysAllowFollowupQuestions: true,
646649
}
647650

648651
const prompt = await SYSTEM_PROMPT(

src/core/prompts/sections/__tests__/custom-instructions.spec.ts

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,14 @@ describe("addCustomInstructions", () => {
535535
"global instructions",
536536
"/fake/path",
537537
"test-mode",
538-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
538+
{
539+
settings: {
540+
maxConcurrentFileReads: 5,
541+
todoListEnabled: true,
542+
useAgentRules: true,
543+
alwaysAllowFollowupQuestions: true,
544+
},
545+
},
539546
)
540547

541548
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")
@@ -560,7 +567,14 @@ describe("addCustomInstructions", () => {
560567
"global instructions",
561568
"/fake/path",
562569
"test-mode",
563-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: false } },
570+
{
571+
settings: {
572+
maxConcurrentFileReads: 5,
573+
todoListEnabled: true,
574+
useAgentRules: false,
575+
alwaysAllowFollowupQuestions: true,
576+
},
577+
},
564578
)
565579

566580
expect(result).not.toContain("# Agent Rules Standard (AGENTS.md):")
@@ -614,7 +628,14 @@ describe("addCustomInstructions", () => {
614628
"global instructions",
615629
"/fake/path",
616630
"test-mode",
617-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
631+
{
632+
settings: {
633+
maxConcurrentFileReads: 5,
634+
todoListEnabled: true,
635+
useAgentRules: true,
636+
alwaysAllowFollowupQuestions: true,
637+
},
638+
},
618639
)
619640

620641
expect(result).toContain("Global Instructions:\nglobal instructions")
@@ -653,7 +674,14 @@ describe("addCustomInstructions", () => {
653674
"global instructions",
654675
"/fake/path",
655676
"test-mode",
656-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
677+
{
678+
settings: {
679+
maxConcurrentFileReads: 5,
680+
todoListEnabled: true,
681+
useAgentRules: true,
682+
alwaysAllowFollowupQuestions: true,
683+
},
684+
},
657685
)
658686

659687
// Should contain both AGENTS.md and .roorules content
@@ -714,7 +742,14 @@ describe("addCustomInstructions", () => {
714742
"global instructions",
715743
"/fake/path",
716744
"test-mode",
717-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
745+
{
746+
settings: {
747+
maxConcurrentFileReads: 5,
748+
todoListEnabled: true,
749+
useAgentRules: true,
750+
alwaysAllowFollowupQuestions: true,
751+
},
752+
},
718753
)
719754

720755
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")
@@ -759,7 +794,14 @@ describe("addCustomInstructions", () => {
759794
"global instructions",
760795
"/fake/path",
761796
"test-mode",
762-
{ settings: { maxConcurrentFileReads: 5, todoListEnabled: true, useAgentRules: true } },
797+
{
798+
settings: {
799+
maxConcurrentFileReads: 5,
800+
todoListEnabled: true,
801+
useAgentRules: true,
802+
alwaysAllowFollowupQuestions: true,
803+
},
804+
},
763805
)
764806

765807
expect(result).toContain("# Agent Rules Standard (AGENTS.md):")

0 commit comments

Comments
 (0)