Skip to content

[BUG] Issues with OpenCode: panic(thread 33600): invalid enum value #26496

Closed

Description

@mynameistito

What version of Bun is running?

bun 1.3.7

What platform is your computer?

Command didn't work, 1.3.7

What steps can reproduce the bug?

open up opencode, type in a prompt hit enter.

What is the expected behavior?

it works, no issues.

What do you see instead?

Image

Additional information

No response

Activity

  1. Jarred-Sumner commented on Jan 27, 2026

    @Jarred-Sumner
    Collaborator

    This is 1.3.5, please give it another go after they upgrade

  2. added a commit that references this issue on Jan 27, 2026
    47789cb
  3. github-actions commented on Jan 27, 2026

    @github-actions
    Contributor

    Found 3 possible duplicate issues:

    1. panic(thread 22920): Segmentation fault at address 0x1D1FB939000 #26034
    2. Segmentation Fault in Bun v1.3.5 on Windows 10 x64 During Opencode Execution #26026
    3. Has version 1.3.6 fixed the bug of panic(thread 55440): Segmentation fault at address 0x28F178D3000? #26060

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  4. mynameistito commented on Jan 27, 2026

    @mynameistito
    Author

    This is 1.3.5, please give it another go after they upgrade

    issues persist on 1.3.7

  5. mynameistito commented on Jan 27, 2026

    @mynameistito
    Author
    Image

    It still says as 1.3.5

    but I ran this straight after the crashing and it showed up as 1.3.7

    Image

    Currently on W10 x64

  6. mynameistito commented on Jan 27, 2026

    @mynameistito
    Author

    Hmm weirdly it seems to work in normal Terminal but not Warp lol

  7. ArcherZX commented on Jan 28, 2026

    @ArcherZX

    Troubleshooting Steps
    Install the latest version of Bun by running: powershell -c "irm bun.sh/install.ps1 | iex"

    Locate the new binary: Find bun.exe in the .bun/bin/ folder under your user directory.

    Navigate to the target folder: Go to your Node installation directory: .../nodejs/node_modules/oh-my-opencode-windows-x64/bin/

    Backup the original file: Rename the existing oh-my-opencode.exe to oh-my-opencode-old.exe.

    Replace the engine: Copy the new bun.exe into this folder and rename it to oh-my-opencode.exe.

    Verify: Run oh-my-opencode install. It should now execute successfully without the segmentation fault.

    Image
  8. mynameistito commented on Jan 28, 2026

    @mynameistito
    Author

    Troubleshooting Steps
    Install the latest version of Bun by running: powershell -c "irm bun.sh/install.ps1 | iex"

    Locate the new binary: Find bun.exe in the .bun/bin/ folder under your user directory.

    Navigate to the target folder: Go to your Node installation directory: .../nodejs/node_modules/oh-my-opencode-windows-x64/bin/

    Backup the original file: Rename the existing oh-my-opencode.exe to oh-my-opencode-old.exe.

    Replace the engine: Copy the new bun.exe into this folder and rename it to oh-my-opencode.exe.

    Verify: Run oh-my-opencode install. It should now execute successfully without the segmentation fault.

    Image

    My issues seemed to somewhat stop like it's slight happening still but less.

    Also I am not running oh my OC

  9. mynameistito commented on Jan 28, 2026

    @mynameistito
    Author

    Issue is back, weirdly only happens on Warp 😭

    My bun v is 1.3.7 but I assume OpenCode is locking it to 1.3.5?

    Image
  10. ivanosquis10 commented on Feb 9, 2026

    @ivanosquis10

    same error here, only happens on warp lol

  11. Hona commented on Mar 7, 2026

    @Hona
    Contributor

    @ivanosquis10 do you have a crash log for warp?
    e.g. I'd like on on latest bun 1.3.10 pls to help repro

  12. added a commit that references this issue on Apr 18, 2026
    e047d6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions