@@ -63,7 +63,7 @@ class FakeWorktreeManager extends mock<CopilotCLIWorktreeManager>() {
6363 override getIsolationPreference = vi . fn ( ( _id : string ) => false ) ;
6464}
6565
66- interface CreateSessionArgs { prompt : string | undefined ; modelId : string | undefined ; workingDirectory : string | undefined }
66+ interface CreateSessionArgs { prompt : string | undefined ; modelId : string | undefined ; workingDirectory : string | undefined ; isolationEnabled : boolean | undefined }
6767
6868class FakeCopilotCLISession implements ICopilotCLISession {
6969 public sessionId : string ;
@@ -88,8 +88,8 @@ class FakeCopilotCLISession implements ICopilotCLISession {
8888class FakeSessionService extends DisposableStore implements ICopilotCLISessionService {
8989 _serviceBrand : undefined ;
9090 public createdArgs : CreateSessionArgs | undefined ;
91- public createSession = vi . fn ( async ( prompt : string | undefined , modelId : string | undefined , workingDirectory : string | undefined ) => {
92- this . createdArgs = { prompt, modelId, workingDirectory } ;
91+ public createSession = vi . fn ( async ( prompt : string | undefined , modelId : string | undefined , workingDirectory : string | undefined , isolationEnabled : boolean | undefined ) => {
92+ this . createdArgs = { prompt, modelId, workingDirectory, isolationEnabled } ;
9393 const s = new FakeCopilotCLISession ( 'new-session-id' ) ;
9494 return s as unknown as ICopilotCLISession ;
9595 } ) ;
@@ -285,7 +285,7 @@ describe('CopilotCLIChatSessionParticipant.handleRequest', () => {
285285 await participant . createHandler ( ) ( request , context , stream , token ) ;
286286
287287 const expectedPrompt = 'Push this\n**Summary**\nsummary text' ;
288- expect ( sessionService . createSession ) . toHaveBeenCalledWith ( expectedPrompt , undefined , undefined , token ) ;
288+ expect ( sessionService . createSession ) . toHaveBeenCalledWith ( expectedPrompt , undefined , undefined , undefined , token ) ;
289289 expect ( summarySpy ) . toHaveBeenCalledTimes ( 1 ) ;
290290 expect ( execSpy ) . toHaveBeenCalledTimes ( 2 ) ;
291291 expect ( execSpy . mock . calls [ 0 ] ) . toEqual ( [ 'vscode.open' , expect . any ( Object ) ] ) ;
@@ -304,7 +304,7 @@ describe('CopilotCLIChatSessionParticipant.handleRequest', () => {
304304 await participant . createHandler ( ) ( request , context , stream , token ) ;
305305
306306 const expectedPrompt = 'Push that\n**Summary**\nprecomputed history' ;
307- expect ( sessionService . createSession ) . toHaveBeenCalledWith ( expectedPrompt , undefined , undefined , token ) ;
307+ expect ( sessionService . createSession ) . toHaveBeenCalledWith ( expectedPrompt , undefined , undefined , undefined , token ) ;
308308 expect ( summarySpy ) . not . toHaveBeenCalled ( ) ;
309309 expect ( execSpy ) . toHaveBeenCalledTimes ( 2 ) ;
310310 expect ( execSpy . mock . calls [ 0 ] . at ( 0 ) ) . toBe ( 'vscode.open' ) ;
0 commit comments