ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] 开启Markdown渲染,一次性粘贴大量文本时,页面失去响应

Open
#5,682 7 comments 0 reactions 0 assignees View on GitHub
bug maybe
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 📦 部署方式

官方安装包

### 📌 软件版本

2.15.5

### 💻 系统环境

macOS

### 📌 系统版本

14.

### 🌐 浏览器

Edge

### 📌 浏览器版本

129

### 🐛 问题描述

开启 `预览气泡` 功能时,一次性向聊天输入太多文本导致页面失去响应。

### 📷 复现步骤

将电影 Her 的[脚本](https://thescriptlab.com/wp-content/uploads/scripts/Her.pdf) 复制并一次性粘贴至聊天窗口。

### 🚦 期望结果

当文本数量超出一定阈值时,可以是停止更新渲染的 Markdown 内容,或不再渲染。

### 📝 补充信息

也许可以对这个判断加一个字符上限的条件?

[代码文件](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/app/components/chat.tsx#L1279)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.