Skip to content

Commit 32cba3a

Browse files
Copilotbpasero
andcommitted
Fix incorrect label for background sessions in Agent Sessions status bar
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
1 parent c6a4c7a commit 32cba3a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { IMarkdownString } from '../../../../../base/common/htmlContent.js';
4444
import { IViewsService } from '../../../../services/views/common/viewsService.js';
4545
import { ChatViewId } from '../chat.js';
4646
import { ChatViewPane } from '../widgetHosts/viewPane/chatViewPane.js';
47+
import { AgentSessionProviders } from '../agentSessions/agentSessions.js';
4748

4849
const extensionPoint = ExtensionsRegistry.registerExtensionPoint<IChatSessionsExtensionPoint[]>({
4950
extensionPoint: 'chatSessions',
@@ -331,8 +332,12 @@ export class ChatSessionsService extends Disposable implements IChatSessionsServ
331332
public reportInProgress(chatSessionType: string, count: number): void {
332333
let displayName: string | undefined;
333334

334-
if (chatSessionType === localChatSessionType) {
335-
displayName = 'Local Chat Agent';
335+
if (chatSessionType === AgentSessionProviders.Local) {
336+
displayName = localize('chat.session.inProgress.local', "Local Agent");
337+
} else if (chatSessionType === AgentSessionProviders.Background) {
338+
displayName = localize('chat.session.inProgress.background', "Background Agent");
339+
} else if (chatSessionType === AgentSessionProviders.Cloud) {
340+
displayName = localize('chat.session.inProgress.cloud', "Cloud Agent");
336341
} else {
337342
displayName = this._contributions.get(chatSessionType)?.contribution.displayName;
338343
}

0 commit comments

Comments
 (0)