Skip to content

Preserve the active OpenCode installation during setup and upgrade #594

Description

@chubes4

Problem

An operator confirmed an unintended downgrade of OpenCode during a managed upgrade workflow. The runtime installer currently falls back to a global npm installation without an explicit contract for preserving the active executable and installation provenance. Preview mode must preserve runtime binaries and service state.

Acceptance criteria

  • Resolve and preserve the active OpenCode executable and installation method across setup and upgrade.
  • Keep existing custom, standalone, and package-manager installations under their existing ownership.
  • Ensure dry-run is side-effect free for runtime installation, binary selection, and service restarts.
  • Verify behavior with isolated executable fixtures covering multiple installed copies and an existing newer/custom runtime.
  • Document the supported fresh-install behavior and provide reproducible repository-native verification commands.

AI assistance

GPT-6 Astra via OpenCode inspected the installer and drafted this repair tracker at the operator’s request.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions