Skip to content

Commit 5e9080a

Browse files
authored
collapse combined thinking parts (microsoft#262866)
collapse thinking part by default
1 parent b84413d commit 5e9080a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatContentParts/chatPinnedContentPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class ChatPinnedContentPart extends ChatCollapsibleContentPart {
1919
context: IChatContentPartRenderContext,
2020
) {
2121
super(nls.localize('chat.pinned.thinking.header.base', "Thinking..."), context);
22-
this.setExpanded(true);
22+
this.setExpanded(false);
2323
this.domNode.classList.add('chat-thinking-box');
2424
this.domNode.tabIndex = 0;
2525

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
745745
const lastPart = findLast(partsToRender, part => part.kind !== 'markdownContent' || part.content.value.trim().length > 0);
746746
if (
747747
!lastPart ||
748-
lastPart.kind === 'references' || lastPart.kind === 'thinking' ||
748+
lastPart.kind === 'references' || lastPart.kind === 'thinking' || this.shouldPinPart(lastPart) ||
749749
(lastPart.kind === 'toolInvocation' && (lastPart.isComplete || lastPart.presentation === 'hidden')) ||
750750
((lastPart.kind === 'textEditGroup' || lastPart.kind === 'notebookEditGroup') && lastPart.done && !partsToRender.some(part => part.kind === 'toolInvocation' && !part.isComplete)) ||
751751
(lastPart.kind === 'progressTask' && lastPart.deferred.isSettled) ||

0 commit comments

Comments
 (0)