### Affected area Desktop UI (agent-gui / React) ### Version or commit 2.0.2 ### Environment windows11 ### Steps to reproduce <img width="2186" height="1214" alt="Image" src="https://github.com/user-attachments/assets/655d32e6-f88d-43e3-9ae4-aa55384d41ce" /> 等待以会 出现 <img width="2186" height="1214" alt="Image" src="https://github.com/user-attachments/assets/9dcb17b0-f1f2-4cbc-a455-9c6d11404ed4" /> 关闭后重试还是同样问题 ### Expected behavior 修复问题 ### Actual behavior none ### Logs / screenshots _No response_ ### Pre-submit checklist - [x] I searched existing issues and pull requests and found no duplicates. - [x] This is not a security vulnerability (report those privately via Security Advisories).
Activity
xiaozhou26 commentedon Nov 3, 2026
感谢反馈和截图。已在 #1137 修复(已合并),会随下一个版本发布。
原因:从 1.x 升级后,首次启动会把旧版会话迁移到新后端。原来每次固定读取 20 个旧会话,连同全部消息和 checkpoint 文件一次性交给界面进程处理。如果历史里有很长的会话或带图片的消息,一批数据就会让界面内存溢出(Out of Memory)。重启后又从同一批开始,所以每次都卡在「正在读取旧数据」。
修复:改成按数据量分批读取,每批约 8 MB,超过就留到下一批。单个很大的会话会单独成一批,迁移可以继续往下走。
先关闭这个 issue。更新后如果还是出现内存溢出,请回复并附上
%USERPROFILE%\.liveagent\chat-history.sqlite3的文件大小,方便判断是不是单个会话本身就特别大。gps5 commentedon Nov 3, 2026
gps5 commentedon Nov 3, 2026
如何修复
fix(history): 旧版会话迁移按字节预算分页,避免 WebView 内存溢出