Stop showing an error message in /plan (#18333)

This commit is contained in:
Adib234
2026-02-04 14:43:25 -05:00
committed by GitHub
parent 650980af37
commit d79478689f
2 changed files with 0 additions and 19 deletions

View File

@@ -92,21 +92,6 @@ describe('planCommand', () => {
);
});
it('should show "No approved plan found" if no approved plan path in config', async () => {
vi.mocked(mockContext.services.config!.isPlanEnabled).mockReturnValue(true);
vi.mocked(mockContext.services.config!.getApprovedPlanPath).mockReturnValue(
undefined,
);
if (!planCommand.action) throw new Error('Action missing');
await planCommand.action(mockContext, '');
expect(coreEvents.emitFeedback).toHaveBeenCalledWith(
'error',
'No approved plan found. Please create and approve a plan first.',
);
});
it('should display the approved plan from config', async () => {
const mockPlanPath = '/mock/plans/dir/approved-plan.md';
vi.mocked(mockContext.services.config!.isPlanEnabled).mockReturnValue(true);

View File

@@ -37,10 +37,6 @@ export const planCommand: SlashCommand = {
const approvedPlanPath = config.getApprovedPlanPath();
if (!approvedPlanPath) {
coreEvents.emitFeedback(
'error',
'No approved plan found. Please create and approve a plan first.',
);
return;
}