Skip to content

cli: support updating Scoop opencode2 installations #52822

Open

Description

@maharshi365

Description

OpenCode V2 cannot update a CLI installed from Scoop's versions bucket. The V2 updater does not include Scoop among its recognized installation methods, so opencode update cannot associate the running opencode2 executable with Scoop and does not run scoop update opencode2.

The Scoop opencode2 manifest installs the platform executable at ~\scoop\apps\opencode2\current\opencode.exe. Scoop itself correctly reports an available update, but the built-in updater requires a separate manual command.

Plugins

None

OpenCode version

2.0.20

Steps to reproduce

  1. Run scoop bucket add versions.
  2. Install V2 with scoop install opencode2.
  3. When an update is available, run opencode update or accept the TUI update action.
  4. Observe that OpenCode cannot detect the installation method instead of updating the opencode2 Scoop app.
  5. Confirm that scoop status lists the update and scoop update opencode2 applies it.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

PowerShell

Activity

  1. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

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

    • #51604: Reports the Windows updater skipping an update because it cannot detect the installation method; that issue concerns npm-global installs, so please compare whether the updater-detection failures overlap.
  2. opencodejr commented on Oct 27, 2026

    @opencodejr

    Thanks for the detailed report, @maharshi365!

    This is a request to have the V2 updater recognise Scoop installs (the opencode2 app from the versions bucket). With that, opencode update and the TUI update action would run scoop update opencode2 for you.

    Right now the V2 updater only detects the OpenCode installer (curl), npm, pnpm, Bun, Yarn, vp, Homebrew and WinGet. Scoop isn't one of the supported update methods yet, so the behaviour you saw is expected for now and not a bug. I've marked this as a feature request for the maintainers to consider.

    Until then, running scoop update opencode2 directly, as you already do, is the way to update.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions