Skip to content

桌面端最近总是会时不时弹出A JavaScript error occurred in the main process报错 #30627

Closed

Description

@GershonWang

Description

A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyedat Function.(file:///opt/0penCode/resources/app.asar/out/main/index.js:1339:47)
Image
如图,使用桌面端会话过程中就会出现这个报错,昨天也遇到好多次

Plugins

使用 oh-my-opencode-slim 插件

Image

OpenCode version

opencode desktop v1.15.13

Image

Steps to reproduce

就是从昨天使用opencode桌面端后发现的,偶发性会话结束就会弹出这个报错,此时发现桌面右上角状态是红色的

Screenshot and/or share link

No response

Operating System

deepin v25.1.0

Image

Activity

  1. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • OpenCode version is empty — please provide the version you are using
    • Operating System is empty — please specify your OS (e.g. Linux, macOS, Windows)
    • Steps to reproduce is empty — please describe what you were doing when the error appeared (even a rough description helps)

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Jun 3, 2026
  3. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    Thank you for updating the issue! It now includes the error details, steps to reproduce, your OpenCode version, operating system, and plugin information. Everything looks good — the compliance flag has been removed.

  4. opencode-agent commented on Jul 20, 2026

    @opencode-agent
    Contributor

    Fixed by #37406.

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