Skip to content

Critical regression: OpenCode 1.0.201 causes random full OS restarts on Pop!_OS (Wayland, AMD APU) #6163

Closed

Description

@jablain

Description

Summary

After upgrading to OpenCode 1.0.201, my system running Pop!_OS experiences random, ungraceful full OS restarts while OpenCode is running. This does not occur with earlier OpenCode versions and appears to be a regression introduced in 1.0.201.

The restarts are hard system resets (no logout, no shutdown sequence).


Environment

  • OS: Pop!_OS (Wayland session)
  • Kernel: 6.17.4-76061704-generic
  • CPU: AMD Ryzen 7 7735HS
  • GPU: AMD Radeon 680M (Rembrandt, integrated)
  • OpenGL renderer: AMD Radeon 680M (radeonsi, Mesa / LLVM 15.0.7)
  • Display server: Wayland
  • Node.js: v24.11.0 (via nvm)

OpenCode installation

  • OpenCode version: 1.0.201
  • Install method: npm install (opencode-ai) inside nvm
  • Executed binary:
    ~/.config/nvm/versions/node/v24.11.0/bin/opencode
  • OpenCode maintains a self-updating runtime under:
    ~/.opencode

Expected behavior

OpenCode should run without causing system instability or OS restarts.


Actual behavior

While OpenCode is running, the system randomly reboots without warning.
There is no graceful shutdown and no user interaction triggering the reboot.


Reproducibility

  • Reproduces consistently with OpenCode 1.0.201
  • Does not occur with earlier OpenCode versions (confirmed by downgrading)
  • Restart occurs after variable runtime (from minutes to tens of minutes)
  • Issue does not occur when OpenCode is not running

Additional notes

  • Auto-update has been disabled to prevent further upgrades.
  • System is using AMD APU + Wayland + Mesa (no NVIDIA drivers installed).
  • I can provide logs (journalctl, dmesg) or test pre-release builds if helpful.

Severity

This issue causes full, ungraceful OS restarts and makes OpenCode unusable on this system.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Dec 25, 2025
  2. github-actions commented on Dec 25, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. jablain commented on Dec 25, 2025

    @jablain
    Author

    On Linux, OpenCode appears to ignore autoupdate:false unless set in ~/.config/opencode/opencode.json, and/or it still attempts updates unless OPENCODE_DISABLE_AUTOUPDATE=true is set. It also appears to stage updates under ~/.local/share/opencode.

  4. jablain commented on Dec 25, 2025

    @jablain
    Author

    Please hold on this bug report. I think I am closing in on the cause on my side. I will report on findings once I am done

  5. jablain commented on Dec 25, 2025

    @jablain
    Author

    While I do not have an exact explanation, I was able to get this OS crash and reset issue completely fixed by removing my Zen account from the auth list. Once this was rtemoved the problem went away. I know this is not very helpfull to squash this bug but it definately was related to my Zen account and not to a specific version of Opencode or the OS as far as I can tell

  6. jablain commented on Dec 25, 2025

    @jablain
    Author

    Should this issue be closed ? I am not sure how you proceed with these types of events. So I will let you decide. On my side the problem is resolved.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions