771
772
constructor(
773
>
@ILogService private readonly _logService: ILogService,
codexAgent.ts
774
>
@ICopilotApiService private readonly _copilotApiService: ICopilotApiService,
775
>
@ICodexProxyService private readonly _codexProxyService: ICodexProxyService,
776
>
@IAgentConfigurationService private readonly _configurationService: IAgentConfigurationService,
777
>
@IAgentHostGitHubEndpointService private readonly _gitHubEndpointService: IAgentHostGitHubEndpointService,
778
>
@IAgentSdkDownloader private readonly _agentSdkDownloader: IAgentSdkDownloader,
779
>
@IProductService private readonly _productService: IProductService,
780
>
@IAgentPluginManager private readonly _pluginManager: IAgentPluginManager,
781
>
@IFileService private readonly _fileService: IFileService,
782
>
@INativeEnvironmentService private readonly _environmentService: INativeEnvironmentService,
783
>
@IInstantiationService private readonly _instantiationService: IInstantiationService,
784
>
) {
785
>
super();
786
>
this._metadataStore = this._instantiationService.createInstance(CodexSessionMetadataStore);
787
>
this._usageSource = this._resolveUsageSource();
788
>
this._register(this._configurationService.onDidRootConfigChange(() => {
789
const next = this._resolveUsageSource();
790
if (next !== this._usageSource) {