opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(cli): uninstall opencode installed via windows package managers

Open itsrainingmani opened this issue 6 days ago • 2 comments

Fixes: #8573

What does this PR do?

  • Adds uninstall information and commands for choco/scoop installs
  • Extends bun remove -g opencode-ai on windows to clean leftover installed artifacts -
    • binaries: .bun\bin\opencode.{exe|bunx}
    • node_modules: .bun\install\global\node_modules\opencode-windows-x64{-baseline}
  • Informs user if they're trying to uninstall opencode via choco from a non-elevated command shell
Screenshot 2026-01-14 194122

How did you verify your code works?

I tested every install method on Windows (Windows Terminal, WezTerm) and uninstalled w/ every method to ensure that the uninstallation happens cleanly and does not leave behind artifacts.

Bun Remove

Screenshot 2026-01-14 192932

Choco Uninstall

Screenshot 2026-01-14 192823

Scoop Uninstall

Screenshot 2026-01-14 191139

itsrainingmani avatar Jan 15 '26 01:01 itsrainingmani

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 15 '26 01:01 github-actions[bot]

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

github-actions[bot] avatar Jan 15 '26 01:01 github-actions[bot]