Optimize long-session history storage and loading
Clean up redundant finalized streaming chunks while preserving semantic messages, final responses, tool calls, and results, and load long histories lazily or paginated to avoid excessive memory use, stack overflows, and browser freezes.
Explore challenge
The problem
Clean up redundant finalized streaming chunks while preserving semantic messages, final responses, tool calls, and results, and load long histories lazily or paginated to avoid excessive memory use, stack overflows, and browser freezes.
Start with these discussions
- [bug反馈] 超长会话因流式增量碎片(reasoning-chunks / text-chunks)未自动清理导致内存溢出 (OOM) 与历史加载失败github · ▲8 · 2 comments
- Web版无法打开超长会话,提示 Maximum call stack size exceededgithub · ▲2 · 2 comments