Description
Description:
Renderer becomes unresponsive for 6-7 seconds when computing file diffs in a session with large files. The hang occurs in the diff algorithm (execEditLength → structuredPatch → createTwoFilesPatch → resolveFileDiff) triggered by CollapsibleRoot components rendering file diffs.
Two consecutive sessions crashed the same way (17:18 and 17:35). The renderer recovered on its own each time (~6s), but the app is unusable during the freeze.
Full debug logs attached.
OpenCode version:
1.17.8 (packaged, win32 x64)
Steps to reproduce:
- Open a session that contains a file diff with many changes or a very large file
- The CollapsibleRoot component tries to compute structuredPatch → execEditLength
- The O(n*m) diff algorithm blocks the main thread for 6+ seconds
- Electron marks the window as "renderer unresponsive"
Operating System:
Windows 11
Terminal:
Windows Terminal
Plugins
OpenCode version
1.17.8 (packaged, win32 x64)
Steps to reproduce
- Open a session that contains a file diff with many changes or a very large file
- The CollapsibleRoot component tries to compute structuredPatch → execEditLength
- The O(n*m) diff algorithm blocks the main thread for 6+ seconds
- Electron marks the window as "renderer unresponsive"
opencode-debug-20260618T143520.zip
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Description
Description:
Renderer becomes unresponsive for 6-7 seconds when computing file diffs in a session with large files. The hang occurs in the diff algorithm (execEditLength → structuredPatch → createTwoFilesPatch → resolveFileDiff) triggered by CollapsibleRoot components rendering file diffs.
Two consecutive sessions crashed the same way (17:18 and 17:35). The renderer recovered on its own each time (~6s), but the app is unusable during the freeze.
Full debug logs attached.
OpenCode version:
1.17.8 (packaged, win32 x64)
Steps to reproduce:
Operating System:
Windows 11
Terminal:
Windows Terminal
Plugins
OpenCode version
1.17.8 (packaged, win32 x64)
Steps to reproduce
opencode-debug-20260618T143520.zip
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal