Do not mark sessions which completed while visible in the UI as unread (fix #288369) (#289039)

This commit is contained in:
Benjamin Pasero
2026-01-20 09:00:03 +01:00
committed by GitHub
parent d52522be26
commit 4ec8c09e46
@@ -1873,6 +1873,11 @@ export class ChatWidget extends Disposable implements IChatWidget {
}
// Only show if response wasn't canceled
this.renderChatSuggestNextWidget();
// Mark the session as read when the request completes and the widget is visible
if (this.visible && this.viewModel?.sessionResource) {
this.agentSessionsService.getSession(this.viewModel.sessionResource)?.setRead(true);
}
}
}));