Skip to content

Commit 654931e

Browse files
committed
fixing failing tests
1 parent d058cb2 commit 654931e

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/modes/planMode/PlanModeManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const READ_ONLY_TOOLS = [
4444
'tools_registry',
4545
'tool_search',
4646
'plan',
47+
'exit_plan_mode',
4748
'ask_followup_question',
4849
];
4950

tests/modes/planMode/PlanModeManager.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,14 @@ describe('PlanModeManager', () => {
315315
expect(tools).not.toContain('run_command');
316316
});
317317

318-
it('should include plan and ask_followup_question in read-only tools', async () => {
318+
it('should include plan approval tools in read-only tools', async () => {
319319
const { PlanModeManager } = await import('../../../src/modes/planMode/PlanModeManager.js');
320320
const manager = new PlanModeManager();
321321

322322
const tools = manager.getReadOnlyTools();
323323

324324
expect(tools).toContain('plan');
325+
expect(tools).toContain('exit_plan_mode');
325326
expect(tools).toContain('ask_followup_question');
326327
});
327328
});

tests/planMode.integration.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ describe('PlanModeManager tool filtering', () => {
369369
// Should include plan-related tools (plan is allowed in read-only list
370370
// when plan mode is enabled; it's gated at the ToolManager level)
371371
expect(tools).toContain('plan');
372+
expect(tools).toContain('exit_plan_mode');
372373
expect(tools).toContain('ask_followup_question');
373374

374375
// Should NOT include write operations

0 commit comments

Comments
 (0)