@@ -707,22 +707,13 @@ describe("managed startup agent environment", () => {
707707 https_proxy : "" ,
708708 no_proxy : "" ,
709709 } ) ;
710- const expectedPiRuntime = { ...result . configurationEnvironment } ;
711- delete expectedPiRuntime . NEMOCLAW_INFERENCE_BASE_URL ;
712- delete expectedPiRuntime . NEMOCLAW_CONTEXT_WINDOW ;
713- delete expectedPiRuntime . NEMOCLAW_MAX_TOKENS ;
714- delete expectedPiRuntime . NEMOCLAW_REASONING ;
715- for ( const name of [
716- "HTTP_PROXY" ,
717- "HTTPS_PROXY" ,
718- "NO_PROXY" ,
719- "http_proxy" ,
720- "https_proxy" ,
721- "no_proxy" ,
722- ] ) {
723- delete expectedPiRuntime [ name ] ;
724- }
725- expect ( result . runtimeEnvironment ) . toEqual ( expectedPiRuntime ) ;
710+ expect ( result . runtimeEnvironment ) . toEqual ( {
711+ NEMOCLAW_INFERENCE_API : "openai-completions" ,
712+ NEMOCLAW_INFERENCE_PROVIDER_ID : "inference" ,
713+ NEMOCLAW_MODEL : "nvidia/nemotron-3-super-120b-a12b" ,
714+ NEMOCLAW_TOOL_DISCLOSURE : "progressive" ,
715+ NEMOCLAW_UPSTREAM_PROVIDER : "nvidia" ,
716+ } ) ;
726717 expect ( result . materials ) . toEqual ( [
727718 {
728719 kind : "corporate-ca-handoff" ,
@@ -770,17 +761,17 @@ describe("managed startup agent environment", () => {
770761 expect ( result . configurationEnvironment ) . toMatchObject ( {
771762 NEMOCLAW_CONTEXT_WINDOW : "262144" ,
772763 NEMOCLAW_MAX_TOKENS : "32000" ,
773- NEMOCLAW_REASONING : "1 " ,
764+ NEMOCLAW_REASONING : "true " ,
774765 } ) ;
775- for ( const name of [ "NEMOCLAW_CONTEXT_WINDOW" , "NEMOCLAW_MAX_TOKENS" , "NEMOCLAW_REASONING" ] ) {
776- expect ( result . runtimeEnvironment ) . not . toHaveProperty ( name ) ;
777- }
766+ expect ( result . runtimeEnvironment ) . not . toHaveProperty ( "NEMOCLAW_CONTEXT_WINDOW" ) ;
767+ expect ( result . runtimeEnvironment ) . not . toHaveProperty ( "NEMOCLAW_MAX_TOKENS" ) ;
768+ expect ( result . runtimeEnvironment ) . not . toHaveProperty ( "NEMOCLAW_REASONING" ) ;
778769 expect (
779770 mapManagedStartupProfileToAgentEnvironment ( {
780771 ...base ,
781772 tuning : { ...base . tuning , reasoning : false } ,
782773 } ) . configurationEnvironment . NEMOCLAW_REASONING ,
783- ) . toBe ( "0 " ) ;
774+ ) . toBe ( "false " ) ;
784775 } ) ;
785776
786777 it ( "rebuilds the Pi generator inputs from the current route without retaining the previous one (#7930)" , ( ) => {
@@ -810,14 +801,10 @@ describe("managed startup agent environment", () => {
810801 { ...before . materials [ 2 ] , contents : "3129\n" } ,
811802 ] ) ;
812803 const serialized = JSON . stringify ( after ) ;
813- for ( const stale of [
814- "https://inference.local/v1" ,
815- "nvidia/nemotron-3-super-120b-a12b" ,
816- "10.200.0.1" ,
817- "3128" ,
818- ] ) {
819- expect ( serialized ) . not . toContain ( stale ) ;
820- }
804+ expect ( serialized ) . not . toContain ( "https://inference.local/v1" ) ;
805+ expect ( serialized ) . not . toContain ( "nvidia/nemotron-3-super-120b-a12b" ) ;
806+ expect ( serialized ) . not . toContain ( "10.200.0.1" ) ;
807+ expect ( serialized ) . not . toContain ( "3128" ) ;
821808 expect ( after . actions ) . toEqual ( before . actions ) ;
822809 } ) ;
823810
0 commit comments