File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,9 @@ export class ExtHostChatAgents2 extends Disposable implements ExtHostChatAgentsS
567
567
}
568
568
const result = new Map < string , boolean > ( ) ;
569
569
for ( const tool of this . _tools . getTools ( extension ) ) {
570
- result . set ( tool . name , request . userSelectedTools2 [ tool . name ] ?? false ) ;
570
+ if ( typeof request . userSelectedTools2 [ tool . name ] === 'boolean' ) {
571
+ result . set ( tool . name , request . userSelectedTools2 [ tool . name ] ) ;
572
+ }
571
573
}
572
574
return result ;
573
575
}
Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ export class ChatSelectedTools extends Disposable {
142
142
const result = new Map < IToolData , boolean > ( ) ;
143
143
const enabledTools = new Set ( this . tools . get ( ) . map ( t => t . id ) ) ;
144
144
for ( const tool of this . _allTools . get ( ) ) {
145
- result . set ( tool , enabledTools . has ( tool . id ) ) ;
145
+ if ( tool . supportsToolPicker ) {
146
+ result . set ( tool , enabledTools . has ( tool . id ) ) ;
147
+ }
146
148
}
147
149
return result ;
148
150
}
You can’t perform that action at this time.
0 commit comments