@@ -529,9 +529,9 @@ describe("executeAgentTurn: provider failures", () => {
529529 } ,
530530 ) ;
531531
532- it ( "currently retries a CLI timeout whose recorded activity has no execution phase mark" , async ( ) => {
532+ it ( "does not retry a CLI timeout whose recorded activity has no execution phase mark" , async ( ) => {
533533 vi . useFakeTimers ( ) ;
534- // BUG (refactor-02b): replay guard ignores recorded cliTimeout.observedActivity; fixed in B2
534+ // FIXED (refactor-02b): the typed CLI activity fact blocks whole-turn replay without a phase mark.
535535 const timeoutError = new FailoverError ( "CLI exceeded timeout (600s) and was terminated." , {
536536 reason : "timeout" ,
537537 provider : "claude-cli" ,
@@ -561,16 +561,16 @@ describe("executeAgentTurn: provider failures", () => {
561561 await vi . advanceTimersByTimeAsync ( 2_500 ) ;
562562 const result = await resultPromise ;
563563
564- expect ( state . runCliAgentMock ) . toHaveBeenCalledTimes ( 2 ) ;
565- expect ( state . runWithModelFallbackMock ) . toHaveBeenCalledTimes ( 2 ) ;
564+ expect ( state . runCliAgentMock ) . toHaveBeenCalledTimes ( 1 ) ;
565+ expect ( state . runWithModelFallbackMock ) . toHaveBeenCalledTimes ( 1 ) ;
566566 expect ( state . runEmbeddedAgentMock ) . not . toHaveBeenCalled ( ) ;
567567 const wholeTurnRetries = state . runCliAgentMock . mock . calls . length - 1 ;
568- expect ( wholeTurnRetries ) . toBe ( 1 ) ;
568+ expect ( wholeTurnRetries ) . toBe ( 0 ) ;
569569 expect ( result . kind ) . toBe ( "final" ) ;
570570 if ( result . kind === "final" ) {
571571 expect ( result . payload . text ) . toContain ( "overall turn limit" ) ;
572572 expect ( result . payload . text ) . toMatch ( / e f f e c t s m a y b e p a r t i a l / i) ;
573- expect ( result . payload . text ) . not . toContain ( "did not replay this turn automatically" ) ;
573+ expect ( result . payload . text ) . toContain ( "did not replay this turn automatically" ) ;
574574 }
575575 } ) ;
576576
0 commit comments