Repository navigation
Closed
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Bug Description
When trying to reopen an old OpenCode web browser window, I get the following JavaScript error:
TypeError: e.diffs.map is not a function
at Object.fn (http://localhost:4096/assets/session-BdJIdAn0.js:19:50326)
at H2 (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:6835)
at $l (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:6592)
at Df (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:8033)
at Q7 (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:8914)
at xO (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:8286)
at Ir (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:8218)
at et (http://localhost:4096/assets/index-Dr5k_2Nz.js:2:3989)
at o (http://localhost:4096/assets/index-Dr5k_2Nz.js:2279:6842)
at http://localhost:4096/assets/session-BdJIdAn0.js:21:39236
Steps to Reproduce
- Open OpenCode web interface
- Try to reopen an old browser session/window
Environment
- OpenCode version: 1.2.27
- Browser: Happens in Brave, Chrome, Edge
- OS: Windows 11
Additional Context
The error suggests that e.diffs is not an array (or is undefined) when the map function is called. This may be related to session state corruption or an issue with how session data is being deserialized.
Reacted by Abdul Shakoor, Long, Mike Mulhearn, RokuDoan, Adam Scarr, Xiaotian Chen, doge-liang, Weilu Jia, Chris Yang, Vonfry and 54 more
Reacted by Glenn Dwiyatcita
Reacted by guangtuan, pharrisee and Mike Repeć
Metadata
Metadata
Assignees
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop
Activity
zhongruan0522 commentedon Mar 26, 2026
I’ve encountered this issue as well. I’m currently on the latest version (1.3.2), and the error persists even after switching computers or browsers; the only time it stops is when I switch to the mobile version.
lzss433 commentedon Mar 26, 2026
+1
daShuiLuoBo commentedon Mar 26, 2026
+1
rluisr commentedon Mar 26, 2026
+1
Kevin589981 commentedon Mar 26, 2026
+1
sllavvicc commentedon Mar 26, 2026
+1
doge-liang commentedon Mar 26, 2026
me too
AlexKilianDT commentedon Mar 26, 2026
+1
kiko-cn commentedon Mar 26, 2026
+1
OneEyedOlaf commentedon Mar 26, 2026
I have same problem either
glorydreamtop commentedon Mar 26, 2026
+1
33 remaining items
xiaomu-software commentedon Mar 26, 2026
+1,我使用的web端,同样的问题。
natewill commentedon Mar 26, 2026
The bug should be completely gone whenever a new release is out
scotty86 commentedon Mar 26, 2026
I noticed the same behavior. If on the left side there is a project shown in the vertical project bar, the error appears.
yetangzhi commentedon Mar 26, 2026
更换更老的版本可以解决嘛?
hdoer commentedon Mar 26, 2026
no
hdoer commentedon Mar 26, 2026
+1
shuvo-paul commentedon Mar 26, 2026
Wellinator commentedon Mar 26, 2026
+1
thdxr commentedon Mar 26, 2026
hey sorry for this. getting fix out now
the reason we hadn't bundled the webapp into the cli was because we were waiting on our move to node to be complete. we didn't realize many people were using it and the version drift issues are impacting a lot of people
we're going to figure out bundling today so this doesn't keep happening
fix(app): add defensive Array.isArray checks for session diffs
fix: add defensive checks for undefined values in diff handling
thdxr commentedon Mar 26, 2026
fixed now - bundling going out in next release
thdxr commentedon Mar 26, 2026
Fixed by #19299 - This issue was caused by version drift between the web UI assets served from the CDN and the local server. Version 1.3.3 is going out now and embeds the WebUI directly in the binary, eliminating any version drift between the server and web UI.
thdxr commentedon Mar 26, 2026
Closing as fixed by #19299