# 注意 OpenCode 1.14.28 存在严重 BUG，会直接导致会话不可用

**URL:** <https://linux.do/t/topic/2098777>\
**Category:** 开发调优\
**Tags:** Bug, 人工智能\
**Created:** [2026 年5 月 2 日 10:28 UTC](https://linux.do/t/topic/2098777 "2026-05-02T10:28:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![skye-z](https://cdn.ldstatic.com/user_avatar/linux.do/skye-z/32/2324990_2.png) [@skye-z](https://linux.do/u/skye-z)\
发布日期： [2026 年5 月 2 日 10:28 UTC](https://linux.do/t/topic/2098777/1 "2026-05-02T10:28:13Z")

</div>

1.14.28 版本存在对会话内容加载的低级错误，它会将会话中的所有消息一次性加载导致数组堆栈内存溢出

> 已经反馈给官方，未修复前使用时请不要让会话长度超过数组内存限制

触发方法：启用Subagent，执行20轮复杂任务，消息条数大于1024条  
触发概率：7成  
触发后果：桌面端整个应用瘫痪，Web端卡在报错界面无法使用，Cli可切换会话后正常使用，但是这个会话是铁定用不了了  
报错信息：👇

```auto
Error: Unknown error
    at mf (http://127.0.0.1:4096/assets/index-Bh6w6-AK.js:2:10361)
    at http://127.0.0.1:4096/assets/index-Bh6w6-AK.js:2:3660

────────────────────────────────────────
原因：
UnknownError
RangeError: Out of memory
    at stringify (unknown)
    at json (B:/~BUN/root/chunk-nat2nf4r.js:2:68592)
    at processTicksAndRejections (native:7:39)

```

PS: 这个BUG，姑且叫BUG吧，通过源码排查发现是OpenCode从文件读取JSON格式的会话记录，会话记录太长导致读不出来，感觉是设计问题，JSON再优化也没法支持太长的会话吧

---

_[View the full topic](https://linux.do/t/topic/2098777)._
