mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
don't pin terminal tools in thinking container (#279419)
This commit is contained in:
@@ -1236,6 +1236,12 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
|
||||
return false;
|
||||
}
|
||||
|
||||
// Don't pin terminal tools
|
||||
const isTerminalTool = (part.kind === 'toolInvocation' || part.kind === 'toolInvocationSerialized') && part.toolSpecificData?.kind === 'terminal';
|
||||
if (isTerminalTool) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (part.kind === 'toolInvocation') {
|
||||
return !part.confirmationMessages;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user