@@ -869,51 +869,6 @@ describe('ACP server test', { timeout: 40_000 }, () => {
869869 } ) ;
870870 } ) ;
871871
872- it ( 'should fallback to the model-specific effort when reasoningEffort is unsupported' , ( ) => {
873- const result = fixture . getCodexAcpClient ( ) . createModelSelection ( mockModels , '5.2-codex' , 'low' , null ) ;
874- expect ( result ) . toEqual ( {
875- currentModelId : "5.2-codex" ,
876- currentReasoningEffort : "medium" ,
877- currentServiceTier : null ,
878- } ) ;
879- } ) ;
880-
881- it ( 'should drop stale service tier when falling back to the default model' , ( ) => {
882- const [ codexModel , defaultModel ] = mockModels as [ Model , Model ] ;
883- const models = [
884- {
885- ...codexModel ,
886- additionalSpeedTiers : [ "fast" ] ,
887- } ,
888- defaultModel ,
889- ] ;
890-
891- const result = fixture . getCodexAcpClient ( ) . createModelSelection ( models , 'unavailable-model' , 'high' , 'fast' ) ;
892- expect ( result ) . toEqual ( {
893- currentModelId : "5.1" ,
894- currentReasoningEffort : "low" ,
895- currentServiceTier : null ,
896- } ) ;
897- } ) ;
898-
899- it ( 'should retain service tier when selected model supports it' , ( ) => {
900- const [ codexModel , defaultModel ] = mockModels as [ Model , Model ] ;
901- const models = [
902- {
903- ...codexModel ,
904- additionalSpeedTiers : [ "fast" ] ,
905- } ,
906- defaultModel ,
907- ] ;
908-
909- const result = fixture . getCodexAcpClient ( ) . createModelSelection ( models , '5.2-codex' , 'high' , 'fast' ) ;
910- expect ( result ) . toEqual ( {
911- currentModelId : "5.2-codex" ,
912- currentReasoningEffort : "high" ,
913- currentServiceTier : "fast" ,
914- } ) ;
915- } ) ;
916-
917872 /**
918873 * Sets up a mock fixture with turnStart/awaitTurnCompleted spied on,
919874 * and a given session state. Returns the fixture and turnStart spy.
0 commit comments