fix(cli): reset plan session state on /clear (#25515)

This commit is contained in:
Jason Matthew Suhari
2026-04-17 03:20:36 +08:00
committed by GitHub
parent 2b6dab6136
commit 9600da2c8f
7 changed files with 171 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ export const createMockConfig = (overrides: Partial<Config> = {}): Config =>
getListSessions: vi.fn(() => false),
getDeleteSession: vi.fn(() => undefined),
setSessionId: vi.fn(),
resetNewSessionState: vi.fn(),
getSessionId: vi.fn().mockReturnValue('mock-session-id'),
getWorktreeSettings: vi.fn(() => undefined),
getContentGeneratorConfig: vi.fn(() => ({ authType: 'google' })),