Skip to content

OpenCode Desktop 版本更新时,自动安装到 C 盘默认路径 #27846

Closed as not planned

Description

@lxjjimlin

Description

OpenCode Desktop 版本更新时,自动安装到 C 盘默认路径,而不是覆盖原来的自定义安装路径(D 盘),导致同一台电脑上出现两个版本。

Plugins

No response

OpenCode version

OpenCode Desktop v1.14.41

Steps to reproduce

  1. 首次安装时将 OpenCode Desktop 安装到自定义目录(如 D:\Program Files\OpenCode)
  2. 打开设置 → 检查更新
  3. 发现新版本并自动下载
  4. 更新安装时,安装到 C:\Users%USERNAME%\AppData\Local\ 或 C:\Program Files\ 等默认路径
  5. 原 D 盘版本未被卸载或更新,残留旧版本

期望行为

自动更新应检测原始安装路径,在原路径覆盖更新,并清理旧版本。

实际行为

自动更新忽略自定义安装路径,安装到 C 盘默认路径,旧版本未被清理。

环境信息

  • OpenCode 版本:当前版本 + 更新后的版本
  • 操作系统:Windows 10/11
  • 安装方式:NSIS 安装包(D 盘自定义路径)

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 16, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Jul 16, 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

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