Latest 0.9.9 opencode bin shows bun command (Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.2.21+7c45ed97d)) #1742

Closed
opened 2026-02-16 17:32:25 -05:00 by yindo · 6 comments
Owner

Originally created by @jflaflamme on GitHub (Sep 17, 2025).

Originally assigned to: @thdxr on GitHub.

Scary stuff with last auto update.

Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.2.21+7c45ed97d)

Usage: bun <command> [...flags] [...args]

Commands:
  run       ./my-script.ts       Execute a file with Bun
            lint                 Run a package.json script
  test                           Run unit tests with Bun
  x         nuxi                 Execute a package binary (CLI), installing if needed (bunx)
  repl                           Start a REPL session with Bun
  exec                           Run a shell script directly with Bun

  install                        Install dependencies for a package.json (bun i)
  add       @remix-run/dev       Add a dependency to package.json (bun a)
  remove    backbone             Remove a dependency from package.json (bun rm)
  update    @evan/duckdb         Update outdated dependencies
  audit                          Check installed packages for vulnerabilities
  outdated                       Display latest versions of outdated dependencies
  link      [<package>]          Register or link a local npm package
  unlink                         Unregister a local npm package
  publish                        Publish a package to the npm registry
  patch <pkg>                    Prepare a package for patching
  pm <subcommand>                Additional package management utilities
  info      @zarfjs/zarf         Display package metadata from the registry

  build     ./a.ts ./b.jsx       Bundle TypeScript & JavaScript into a single file

  init                           Start an empty Bun project from a built-in template
  create    svelte               Create a new project from a template (bun c)
  upgrade                        Upgrade to latest version of Bun.
  <command> --help               Print help text for command.

Learn more about Bun:            https://bun.com/docs
Join our Discord community:      https://bun.com/discord```
Originally created by @jflaflamme on GitHub (Sep 17, 2025). Originally assigned to: @thdxr on GitHub. Scary stuff with last auto update. ```❯ opencode Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.2.21+7c45ed97d) Usage: bun <command> [...flags] [...args] Commands: run ./my-script.ts Execute a file with Bun lint Run a package.json script test Run unit tests with Bun x nuxi Execute a package binary (CLI), installing if needed (bunx) repl Start a REPL session with Bun exec Run a shell script directly with Bun install Install dependencies for a package.json (bun i) add @remix-run/dev Add a dependency to package.json (bun a) remove backbone Remove a dependency from package.json (bun rm) update @evan/duckdb Update outdated dependencies audit Check installed packages for vulnerabilities outdated Display latest versions of outdated dependencies link [<package>] Register or link a local npm package unlink Unregister a local npm package publish Publish a package to the npm registry patch <pkg> Prepare a package for patching pm <subcommand> Additional package management utilities info @zarfjs/zarf Display package metadata from the registry build ./a.ts ./b.jsx Bundle TypeScript & JavaScript into a single file init Start an empty Bun project from a built-in template create svelte Create a new project from a template (bun c) upgrade Upgrade to latest version of Bun. <command> --help Print help text for command. Learn more about Bun: https://bun.com/docs Join our Discord community: https://bun.com/discord```
yindo closed this issue 2026-02-16 17:32:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 17, 2025):

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

  • #2527: Similar issue where opencode --help was printing bun help text instead of opencode help

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

@github-actions[bot] commented on GitHub (Sep 17, 2025): This issue might be a duplicate of existing issues. Please check: - #2527: Similar issue where `opencode --help` was printing bun help text instead of opencode help Feel free to ignore if none of these address your specific case.
Author
Owner

@JensDeClercq1 commented on GitHub (Sep 17, 2025):

Had this same issue when running on docker image node:24-alpine, seems to be working fine on node:24-slim.
Both npm install and bun install would point to bun.

@JensDeClercq1 commented on GitHub (Sep 17, 2025): Had this same issue when running on docker image node:24-alpine, seems to be working fine on node:24-slim. Both npm install and bun install would point to bun.
Author
Owner

@Jarred-Sumner commented on GitHub (Sep 17, 2025):

Is the opencode binary named "bun" in the filename? That is usually how this could happen

@Jarred-Sumner commented on GitHub (Sep 17, 2025): Is the opencode binary named "bun" in the filename? That is usually how this could happen
Author
Owner

@rekram1-node commented on GitHub (Sep 17, 2025):

@jflaflamme are you using Nix by chance

@rekram1-node commented on GitHub (Sep 17, 2025): @jflaflamme are you using Nix by chance
Author
Owner

@jflaflamme commented on GitHub (Sep 18, 2025):

I am using ubuntu 24.04, had the downloaded opencode (running for a few weeks and using daily), with auto update on (lot of updates ..).

So 20 minutes after the release, I re-opened opencode and asked me to restart to apply latest update, and I had this error.
I re-download the preview release and turned auto update off.

Hope this helps.

@jflaflamme commented on GitHub (Sep 18, 2025): I am using ubuntu 24.04, had the downloaded opencode (running for a few weeks and using daily), with auto update on (lot of updates ..). So 20 minutes after the release, I re-opened opencode and asked me to restart to apply latest update, and I had this error. I re-download the preview release and turned auto update off. Hope this helps.
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1742