ant-design / ant-design/pro-chat

🐛[BUG]流式输出过程中,上滑查看聊天记录会自动回到底部(即无法上滑查看聊天记录)

Open
#331 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
898
Forks
116
PR merge metrics
No merged PRs in 30d

Description

### 🐛 bug 描述

在 SSE 流式输出的过程中,上滑查看历史聊天记录会自动回到底部(即无法上滑查看历史聊天记录)

### 📷 复现步骤

1. 设置流式输出
2. 输入问题添加记录至需滚动查看历史聊天记录的程度
3. 再次输入问题并等待响应
4. 在响应流式输出过程中上滑查看聊天历史记录
5. bug 出现,无法查看历史聊天记录

### 🏞 期望结果

在 SSE 流式输出的过程中,可以上滑查看历史聊天记录

### 💻 复现代码

参考官方#大数据渲染示例: https://pro-chat.antdigital.dev/components/pro-chat#%E5%A4%A7%E6%95%B0%E6%8D%AE%E6%B8%B2%E6%9F%93

### © 版本信息

- @ant-design/pro-chat 版本: v1.15.3
- 浏览器环境
- 开发环境 mac OS

### 🚑 其他信息
见附图
![Snipaste_2024-11-05_11-30-53](https://github.com/user-attachments/assets/8814ccff-7c80-4517-8fcc-8f3f5b3dd0fb)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with @ant-design/pro-chat v1.15.3 using the official large-data rendering example linked in the report. Test manual upward scrolling while an SSE response streams; done means historical messages remain viewable instead of the chat being forced back to the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.