[PR #720] [MERGED] fix: Skip opencode upgrade if same version #9690

Closed
opened 2026-02-16 18:13:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/720
Author: @ll931217
Created: 7/5/2025
Status: Merged
Merged: 7/6/2025
Merged by: @thdxr

Base: devHead: skip-upgrade


📝 Commits (1)

  • 703d2f1 fix: Skip opencode upgrade if same version

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 packages/opencode/src/cli/cmd/upgrade.ts (+9 -0)

📄 Description

Currently, upgrading OpenCode would redownload the latest executable file even if the version number is the same as the one installed. This PR makes the code return early, it should work with latest version and targetted versions.

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/720 **Author:** [@ll931217](https://github.com/ll931217) **Created:** 7/5/2025 **Status:** ✅ Merged **Merged:** 7/6/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `skip-upgrade` --- ### 📝 Commits (1) - [`703d2f1`](https://github.com/anomalyco/opencode/commit/703d2f1bf0b139ac0c7c67cc816c39b208f83893) fix: Skip opencode upgrade if same version ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/cli/cmd/upgrade.ts` (+9 -0) </details> ### 📄 Description Currently, upgrading OpenCode would redownload the latest executable file even if the version number is the same as the one installed. This PR makes the code return early, it should work with latest version and targetted versions. ![image](https://github.com/user-attachments/assets/b6e02ca7-f481-4ce9-8b78-4ea16798f58c) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:59 -05:00
yindo closed this issue 2026-02-16 18:13:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9690