@@ -84,6 +84,7 @@ it.skipIf(isInProcessTransport)(
8484
8585 const result = await session . factory . run ( "argument-echo" , {
8686 args : { source : "sdk-e2e" , count : 11 } ,
87+ notifyOnComplete : false ,
8788 } ) ;
8889
8990 expect ( result ) . toMatchObject ( {
@@ -140,7 +141,7 @@ it.skipIf(isInProcessTransport)(
140141 const { workDir } = factoryTestContext ;
141142 await using session = await setupFactoryExtension ( workDir ) ;
142143
143- const run = await session . factory . run ( "argument-echo" ) ;
144+ const run = await session . factory . run ( "argument-echo" , { notifyOnComplete : false } ) ;
144145 const error = await session . factory . resume ( run . runId ) . catch ( ( caught : unknown ) => caught ) ;
145146
146147 expect ( error ) . toBeInstanceOf ( FactoryResumeError ) ;
@@ -253,7 +254,9 @@ it.skipIf(isInProcessTransport)(
253254 const denyPermissions = vi . fn ( ( ) => ( { kind : "reject" as const } ) ) ;
254255 await using session = await setupFactoryExtension ( workDir , denyPermissions ) ;
255256
256- await expect ( session . factory . run ( "argument-echo" ) ) . resolves . toMatchObject ( {
257+ await expect (
258+ session . factory . run ( "argument-echo" , { notifyOnComplete : false } )
259+ ) . resolves . toMatchObject ( {
257260 status : "completed" ,
258261 } ) ;
259262 expect ( denyPermissions ) . not . toHaveBeenCalled ( ) ;
@@ -270,7 +273,7 @@ it.skipIf(isInProcessTransport)(
270273 const denyPermissions = vi . fn ( ( ) => ( { kind : "reject" as const } ) ) ;
271274 await using session = await setupFactoryExtension ( workDir , denyPermissions ) ;
272275
273- const failedRun = await session . factory . run ( "fails-once" ) ;
276+ const failedRun = await session . factory . run ( "fails-once" , { notifyOnComplete : false } ) ;
274277 expect ( failedRun ) . toMatchObject ( {
275278 status : "error" ,
276279 } ) ;
@@ -297,7 +300,9 @@ it.skipIf(isInProcessTransport)(
297300 const { workDir } = factoryTestContext ;
298301 await using session = await setupFactoryExtension ( workDir ) ;
299302
300- const result = await session . factory . run ( "starts-from-context-session" ) ;
303+ const result = await session . factory . run ( "starts-from-context-session" , {
304+ notifyOnComplete : false ,
305+ } ) ;
301306
302307 expect ( result ) . toMatchObject ( {
303308 status : "completed" ,
@@ -316,7 +321,9 @@ it.skipIf(isInProcessTransport)(
316321 const { workDir } = factoryTestContext ;
317322 await using session = await setupFactoryExtension ( workDir ) ;
318323
319- const result = await session . factory . run ( "starts-from-module-session" ) ;
324+ const result = await session . factory . run ( "starts-from-module-session" , {
325+ notifyOnComplete : false ,
326+ } ) ;
320327
321328 expect ( result ) . toMatchObject ( {
322329 status : "completed" ,
@@ -336,7 +343,7 @@ it.skipIf(isInProcessTransport)(
336343 const extensionDir = join ( workDir , ".github" , "extensions" , "factory-smoke" ) ;
337344 await using session = await setupFactoryExtension ( workDir ) ;
338345
339- const parked = session . factory . run ( "parked" ) ;
346+ const parked = session . factory . run ( "parked" , { notifyOnComplete : false } ) ;
340347 await retry (
341348 "wait for the parked factory to enter its body" ,
342349 async ( ) => {
@@ -382,7 +389,7 @@ it.skipIf(isInProcessTransport)(
382389 const { workDir } = factoryTestContext ;
383390 await using session = await setupFactoryExtension ( workDir ) ;
384391
385- const result = await session . factory . run ( "array-result" ) ;
392+ const result = await session . factory . run ( "array-result" , { notifyOnComplete : false } ) ;
386393
387394 expect ( result ) . toMatchObject ( {
388395 status : "completed" ,
@@ -401,7 +408,10 @@ it.skipIf(isInProcessTransport)(
401408 await using session = await setupFactoryExtension ( workDir ) ;
402409
403410 const args = [ 1 , "two" , false ] ;
404- const result = await session . factory . run ( "argument-echo" , { args } ) ;
411+ const result = await session . factory . run ( "argument-echo" , {
412+ args,
413+ notifyOnComplete : false ,
414+ } ) ;
405415
406416 expect ( result ) . toMatchObject ( {
407417 status : "completed" ,
0 commit comments