Skip to content

Commit 3cef167

Browse files
authored
setting for showing thinking (#260184)
1 parent 0cc6dec commit 3cef167

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,12 @@ configurationRegistry.registerConfiguration({
558558
default: true,
559559
description: nls.localize('chat.tools.useTreePicker', "Use the new Quick Tree-based tools picker instead of the Quick Pick-based one. Provides better hierarchical organization of tools and tool sets with collapsible sections, improved visual hierarchy, and native tree interactions."),
560560
tags: ['experimental'],
561+
},
562+
[ChatConfiguration.ShowThinking]: {
563+
type: 'boolean',
564+
default: false,
565+
description: nls.localize('chat.agent.showThinking', "Controls whether to show the thinking process of the model in chat responses."),
566+
tags: ['experimental'],
561567
}
562568
}
563569
});

src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
11501150
return this.renderChatErrorDetails(context, content, templateData);
11511151
} else if (content.kind === 'elicitation') {
11521152
return this.renderElicitation(context, content, templateData);
1153-
} else if (content.kind === 'thinking' && content.value) {
1153+
} else if (content.kind === 'thinking' && this.configService.getValue<boolean>(ChatConfiguration.ShowThinking) && content.value) {
11541154
return this.renderThinking(context, content, templateData);
11551155
} else if (content.kind === 'changesSummary') {
11561156
return this.renderChangesSummary(content, context, templateData);

src/vs/workbench/contrib/chat/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export enum ChatConfiguration {
1212
EnableMath = 'chat.math.enabled',
1313
CheckpointsEnabled = 'chat.checkpoints.enabled',
1414
AgentSessionsViewLocation = 'chat.agentSessionsViewLocation',
15+
ShowThinking = 'chat.agent.showThinking',
1516
}
1617

1718
/**

0 commit comments

Comments
 (0)