anomalyco / anomalyco/opencode
Electron renderer unresponsive / crash due to ResizeObserver loop storm (layout thrashing)
@Brendonovich is already working on this.
Since Jul 22, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
OpenCode v1.18.4 (win32, x64, packaged) repeatedly crashes. I think it had something to to with copy and pasting a larger log with hunderds of lines in de chat. The debug logs reveal the following chain of events:
The Electron renderer process becomes unresponsive (window.log: renderer unresponsive on oc://renderer/index.html, e.g. at 17:27:25 and 17:27:50, recovering at 17:28:03 but likely crashing on subsequent freezes).
The renderer.log contains thousands of ResizeObserver loop completed with undelivered notifications errors across every session — a symptom of continuous layout thrashing in the UI that eventually hangs the renderer.
The protocol.log shows mass net::ERR_FILE_NOT_FOUND errors for all .js.map sourcemap files (every renderer asset sourcemap is missing from the ASAR bundle). These are non-fatal individually but indicate sourcemaps are stripped from the production build.
Multiple very short sessions (e.g. 093946, 094445, 094921, 095322, 114845) all lasting under 30 seconds, suggesting repeated crashes on launch or shortly after.
Plugins
No response
OpenCode version
v1.18.4
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.