Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/chatpanel/app/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ export function mountChatPanel(): void {
});

const messageRenderOptions: MessageRenderOptions = {
shouldAutoScroll: (reason) =>
reason === 'render-all' || messageListAutoScrollState.shouldAutoScroll(),
shouldAutoScroll: () => messageListAutoScrollState.shouldAutoScroll(),
onAssistantAction: (action, message) => {
if (!conversationFlow) {
return;
Expand Down
9 changes: 8 additions & 1 deletion tests/unit/chatpanel/app/regen-flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,9 @@ describe('chatpanel regenerate flow', () => {
await flushMicrotasks(6);
expect(messageList.scrollTop).toBe(700);

messageList.scrollTop = 600;
messageList.dispatchEvent(new testWindow.Event('scroll'));

currentMessages = [
{ id: 'persisted-user-2', role: 'user', content: 'second prompt' },
{
Expand All @@ -1048,7 +1051,11 @@ describe('chatpanel regenerate flow', () => {
},
},
});
await flushMicrotasks(20);
simulatedScrollHeight = 760;
const loadCountBeforeSecondCompletion = loadRequests.length;
await flushMicrotasks(80);
expect(loadRequests.length).toBeGreaterThan(loadCountBeforeSecondCompletion);
expect(messageList.scrollTop).toBe(600);
});

it('shows image previews inline within the chatpanel for staged and message attachments', async () => {
Expand Down
99 changes: 0 additions & 99 deletions tests/unit/plugins/page-text-extraction/nga-bbs-cn.plugin.test.ts

This file was deleted.