File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/array/src/main/services Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -448,9 +448,12 @@ export class SessionManager {
448448 credentials : PostHogCredentials ,
449449 mockNodeDir : string ,
450450 ) : void {
451+ const token = this . getToken ( credentials . apiKey ) ;
451452 const newPath = `${ mockNodeDir } :${ process . env . PATH || "" } ` ;
452453 process . env . PATH = newPath ;
453- process . env . POSTHOG_AUTH_HEADER = `Bearer ${ credentials . apiKey } ` ;
454+ process . env . POSTHOG_AUTH_HEADER = `Bearer ${ token } ` ;
455+ process . env . ANTHROPIC_API_KEY = token ;
456+ process . env . ANTHROPIC_AUTH_TOKEN = token ;
454457
455458 const llmGatewayUrl =
456459 process . env . LLM_GATEWAY_URL ||
@@ -461,7 +464,7 @@ export class SessionManager {
461464 process . env . CLAUDE_CODE_EXECUTABLE = getClaudeCliPath ( ) ;
462465
463466 // Set env vars for SessionStore in agent package
464- process . env . POSTHOG_API_KEY = credentials . apiKey ;
467+ process . env . POSTHOG_API_KEY = token ;
465468 process . env . POSTHOG_API_URL = credentials . apiHost ;
466469 process . env . POSTHOG_PROJECT_ID = String ( credentials . projectId ) ;
467470 }
You can’t perform that action at this time.
0 commit comments