fixed multi history display

This commit is contained in:
Elijah King
2025-08-31 18:53:18 -07:00
parent ec9bb0b345
commit 602bc14dba
@@ -942,14 +942,15 @@ export class ChatWidget extends Disposable implements IChatWidget {
welcomeContent = this.getWelcomeViewContent(additionalMessage);
welcomeContent.tips = tips;
}
// Optional: recent chat history above welcome content when enabled
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
if (showHistory) {
this.renderWelcomeHistorySection();
}
if (!this.welcomePart.value || this.welcomePart.value.needsRerender(welcomeContent)) {
dom.clearNode(this.welcomeMessageContainer);
// Optional: recent chat history above welcome content when enabled
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
if (showHistory) {
this.renderWelcomeHistorySection();
}
this.welcomePart.value = this.instantiationService.createInstance(
ChatViewWelcomePart,
welcomeContent,