From b656a7dcd9e9ea2c9f8a045c5f6151082e47d02b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 03:32:58 +0000 Subject: [PATCH 1/2] Initial plan From 5084d260785ba4db5ec00dde4fea5291a9f959ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 4 Jan 2026 03:44:18 +0000 Subject: [PATCH 2/2] fix: update opencode to use anomalyco repository The opencode GitHub releases moved from sst/opencode to anomalyco/opencode. Updated the REPO_OWNER to point to the correct repository where Linux binaries are actually published. Also fixed the fallback version resolution to prevent script exit on failure. Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com> --- src/opencode/devcontainer-feature.json | 2 +- src/opencode/install.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/opencode/devcontainer-feature.json b/src/opencode/devcontainer-feature.json index 079d936..5027f0a 100644 --- a/src/opencode/devcontainer-feature.json +++ b/src/opencode/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "OpenCode", "id": "opencode", - "version": "1.1.0", + "version": "1.1.1", "description": "AI coding agent, built for the terminal. An open-source alternative to Claude Code with support for multiple LLM providers.", "documentationURL": "https://opencode.ai/docs", "options": { diff --git a/src/opencode/install.sh b/src/opencode/install.sh index 8af3d40..dd04782 100755 --- a/src/opencode/install.sh +++ b/src/opencode/install.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Variables -REPO_OWNER="sst" +REPO_OWNER="anomalyco" REPO_NAME="opencode" OPENCODE_VERSION="${VERSION:-"latest"}" @@ -26,7 +26,7 @@ check_packages() { fi } -# Make sure we have curl, ca-certificates, and tar +# Make sure we have curl, ca-certificates, tar, and jq check_packages curl ca-certificates tar jq echo "Installing OpenCode version: $OPENCODE_VERSION" @@ -96,14 +96,14 @@ resolve_latest_version_fallback() { fi echo "Failed to resolve version from HTML, using known fallback version..." >&2 - echo "1.0.107" # Known recent version as last resort + echo "1.0.223" # Known recent version as last resort return 1 } # Resolve version if [ "$OPENCODE_VERSION" = "latest" ]; then if ! RESOLVED_VERSION=$(resolve_latest_version); then - RESOLVED_VERSION=$(resolve_latest_version_fallback) + RESOLVED_VERSION=$(resolve_latest_version_fallback) || true fi echo "Resolved latest version to: $RESOLVED_VERSION" OPENCODE_VERSION="$RESOLVED_VERSION"