You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop app renderer freezes/crashes repeatedly when rendering code diffs in chat. The execEditLength function in the diff algorithm hangs on large inputs, making the UI unresponsive for 5-10 seconds (or permanently) each time a code diff is displayed.
Plugins
No response
OpenCode version
OpenCode version
Steps to reproduce
Open OpenCode Desktop app (macOS arm64)
Start a new session / conversation
Ask the agent to make code edits that produce large diffs (or continue the conversation long enough to accumulate multiple diffs)
Observe the app freeze — the renderer becomes unresponsive
Restart the app — it tries to restore the previous session and freezes again immediately
Screenshot and/or share link
From ~/Library/Application Support/ai.opencode.desktop/logs/*/window.log:
[error] (window) renderer unresponsive
at execEditLength (main-CMia5thD.js:42291:7)
at LineDiff.diffWithOptionsObj (main-CMia5thD.js:42340:21)
at diffLines (main-CMia5thD.js:42491:19)
at structuredPatch (main-CMia5thD.js:42529:35)
at createTwoFilesPatch (main-CMia5thD.js:42656:22)
at parseDiffFromFile (main-CMia5thD.js:44283:32)
at fileDiffFromContent (session-kFpN98Pe.js:18980:10)
at fileDiffFromPatch (session-kFpN98Pe.js:18914:28)
at resolveFileDiff (session-kFpN98Pe.js:18884:47)
These issues describe the same root cause: synchronous Myers diff computation (execEditLength) blocking the Electron renderer thread when processing large diffs.
Activity
github-actions commentedon Jun 10, 2026
This issue might be a duplicate of existing issues. Please check:
execEditLengthstack trace, Windows)execEditLength→structuredPatchcall chain)These issues describe the same root cause: synchronous Myers diff computation (
execEditLength) blocking the Electron renderer thread when processing large diffs.github-actions commentedon Aug 9, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.