Skip to content

Commit 3ad0fee

Browse files
authored
Disable AskAgent when agent mode is disabled (#387)
Not sure whether this is totally necessary, but be conservative.
1 parent 58cd614 commit 3ad0fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/conversation/vscode-node/chatParticipants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class ChatAgents implements IDisposable {
194194

195195
private registerDefaultAgent(): IDisposable {
196196
const intentGetter = (request: vscode.ChatRequest) => {
197-
if (this.configurationService.getExperimentBasedConfig(ConfigKey.Internal.AskAgent, this.experimentationService) && request.model.capabilities.supportsToolCalling) {
197+
if (this.configurationService.getExperimentBasedConfig(ConfigKey.Internal.AskAgent, this.experimentationService) && request.model.capabilities.supportsToolCalling && this.configurationService.getNonExtensionConfig('chat.agent.enabled')) {
198198
return Intent.AskAgent;
199199
}
200200
return Intent.Unknown;

0 commit comments

Comments
 (0)