Skip to content

Commit 9a066d0

Browse files
committed
fix: use tokenProvider for TRUSTIFY_DA_TOKEN in stack analysis
The existing stack analysis was incorrectly using globalConfig.telemetryId as the auth token. Use tokenProvider.getToken() consistently with batch analysis. Implements TC-3864 Assisted-by: Claude Code
1 parent abe4501 commit 9a066d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/stackAnalysis.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as vscode from 'vscode';
44

55
import { StatusMessages, Titles } from './constants';
66
import { buildBaseOptions, stackAnalysisService } from './exhortServices';
7-
import { globalConfig } from './config';
87
import { updateCurrentWebviewPanel } from './rhda';
98
import { buildLogErrorMessage } from './utils';
109
import { DepOutputChannel } from './depOutputChannel';
@@ -21,7 +20,7 @@ export async function executeStackAnalysis(tokenProvider: TokenProvider, manifes
2120

2221
const options = {
2322
...buildBaseOptions(),
24-
'TRUSTIFY_DA_TOKEN': globalConfig.telemetryId,
23+
'TRUSTIFY_DA_TOKEN': await tokenProvider.getToken() ?? '',
2524
};
2625

2726
try {

0 commit comments

Comments
 (0)