fix working spinner not showing up (#283798)

* fix working spinner not showing up

* remove whitespace

* remove extra thinking part check
This commit is contained in:
Justin Chen 2025-12-16 20:56:00 +08:00 committed by GitHub
parent 98a4b07a23
commit 5bf98dbfca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -769,7 +769,11 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
const collapsedToolsMode = this.configService.getValue<CollapsedToolsDisplayMode>('chat.agent.thinking.collapsedTools');
if (collapsedToolsMode === CollapsedToolsDisplayMode.Always || (collapsedToolsMode === CollapsedToolsDisplayMode.WithThinking && this.getLastThinkingPart(templateData.renderedParts))) {
const lastThinking = this.getLastThinkingPart(templateData.renderedParts);
if (lastThinking &&
(collapsedToolsMode === CollapsedToolsDisplayMode.Always ||
collapsedToolsMode === CollapsedToolsDisplayMode.WithThinking)) {
if (!lastPart || lastPart.kind === 'thinking' || lastPart.kind === 'toolInvocation' || lastPart.kind === 'prepareToolInvocation' || lastPart.kind === 'textEditGroup' || lastPart.kind === 'notebookEditGroup') {
return false;
}