Skip to content

Desktop app renderer freezes/crashes repeatedly #31594

Closed as not planned
Closed as not planned

Description

@onenuo28-beep

Description

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)

Operating System

macOS (Apple Silicon)

Terminal

N/A (Desktop app)

Activity

  1. github-actions commented on Jun 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues describe the same root cause: synchronous Myers diff computation (execEditLength) blocking the Electron renderer thread when processing large diffs.

  2. github-actions commented on Aug 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions