@@ -854,11 +854,13 @@ describe("DesktopBackendConfiguration", () => {
854854 const previousOpenAiKey = process . env . OPENAI_API_KEY ;
855855 const previousAnthropicKey = process . env . ANTHROPIC_API_KEY ;
856856 const previousOtlpHeaders = process . env . T3CODE_OTLP_HEADERS ;
857+ const previousOtlpProtocol = process . env . T3CODE_OTLP_PROTOCOL ;
857858 try {
858859 process . env . WSLENV = "GOPATH/p:OPENAI_API_KEY/u:EMPTY::AZURE_DEVOPS_EXT_PAT/u" ;
859860 process . env . OPENAI_API_KEY = "openai-key" ;
860861 process . env . ANTHROPIC_API_KEY = "anthropic-key" ;
861862 process . env . T3CODE_OTLP_HEADERS = 'authorization="Bearer%20my-token"' ;
863+ process . env . T3CODE_OTLP_PROTOCOL = "http/protobuf" ;
862864
863865 yield * Effect . gen ( function * ( ) {
864866 const configuration = yield * DesktopBackendConfiguration . DesktopBackendConfiguration ;
@@ -878,13 +880,14 @@ describe("DesktopBackendConfiguration", () => {
878880 assert . equal ( config . httpBaseUrl . href , "http://172.27.0.99:5050/" ) ;
879881 assert . equal ( config . env . OPENAI_API_KEY , "openai-key" ) ;
880882 assert . equal ( config . env . ANTHROPIC_API_KEY , "anthropic-key" ) ;
883+ assert . equal ( config . env . T3CODE_OTLP_PROTOCOL , "http/protobuf" ) ;
881884 // The existing WSLENV is preserved byte-for-byte (note the empty
882885 // "::" segment survives — WSL ignores it, so we don't normalize
883886 // it away) and ANTHROPIC_API_KEY is appended. OPENAI_API_KEY is
884887 // already declared, so it isn't forwarded twice.
885888 assert . equal (
886889 config . env . WSLENV ,
887- "GOPATH/p:OPENAI_API_KEY/u:EMPTY::AZURE_DEVOPS_EXT_PAT/u:ANTHROPIC_API_KEY:T3CODE_OTLP_HEADERS" ,
890+ "GOPATH/p:OPENAI_API_KEY/u:EMPTY::AZURE_DEVOPS_EXT_PAT/u:ANTHROPIC_API_KEY:T3CODE_OTLP_HEADERS:T3CODE_OTLP_PROTOCOL " ,
888891 ) ;
889892 } ) . pipe (
890893 Effect . provide (
@@ -908,6 +911,7 @@ describe("DesktopBackendConfiguration", () => {
908911 restoreEnv ( "OPENAI_API_KEY" , previousOpenAiKey ) ;
909912 restoreEnv ( "ANTHROPIC_API_KEY" , previousAnthropicKey ) ;
910913 restoreEnv ( "T3CODE_OTLP_HEADERS" , previousOtlpHeaders ) ;
914+ restoreEnv ( "T3CODE_OTLP_PROTOCOL" , previousOtlpProtocol ) ;
911915 }
912916 } ) . pipe ( Effect . scoped , Effect . provide ( NodeServices . layer ) ) ,
913917 ) ;
0 commit comments