Skip to content

Support upgrading Winget-installed opencode #30026

Closed as not planned
Closed as not planned

Description

@pascalandr

Description

On Windows, opencode installed with Winget is detected on PATH through the WinGet Links shim, but the upgrade method list does not include Winget. opencode upgrade and /global/upgrade therefore cannot route a Winget install to winget upgrade --id SST.opencode --exact.

Plugins

None

OpenCode version

1.15.12

Steps to reproduce

  1. Install opencode with Winget: winget install --id SST.opencode --exact
  2. Confirm where opencode resolves under Microsoft\WinGet\Links
  3. Run opencode upgrade or call /global/upgrade

Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

Windows Terminal / PowerShell

Activity

  1. github-actions commented on May 30, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  2. JustSidus commented on Jun 12, 2026

    @JustSidus

    PR #30025 implements winget upgrade detection and routing. This would solve the issue where opencode tries to use npm even when installed via winget. The PR has tests and passes typecheck. Would be great to see it reviewed and merged.

  3. github-actions commented on Aug 12, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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