Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 4, 2026

OpenCode installation was failing because the script referenced sst/opencode for binaries, but Linux .tar.gz releases are published under anomalyco/opencode.

Changes

  • Updated REPO_OWNER from sst to anomalyco in install.sh
  • Fixed fallback version resolver exit code handling to prevent premature termination
  • Updated fallback version reference from 1.0.107 to 1.0.223
  • Bumped feature version to 1.1.1

The repository discrepancy exists because the official sst/opencode install script itself points to anomalyco/opencode for binary downloads.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • containers.dev
    • Triggering command: /usr/local/bin/node node /usr/local/bin/devcontainer features test -f opencode -i ubuntu:latest . vmh13bl (dns block)
  • docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com
    • Triggering command: /usr/local/bin/node node /usr/local/bin/devcontainer features test -f opencode -i ubuntu:latest . vmh13bl (dns block)
  • https://api.github.com/repos/anomalyco/opencode/releases/latest
    • Triggering command: /usr/bin/curl curl -s --max-time 10 REDACTED (http block)
  • https://api.github.com/repos/sst/opencode/releases/latest
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -s --max-time 10 REDACTED (http block)
  • opencode.ai
    • Triggering command: /usr/bin/curl curl -fsSL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>opencode features failing</issue_title>
<issue_description>got the following error from the tests:

0.141 Installing OpenCode version: latest 0.144 Resolving latest version using GitHub API... 0.244 GitHub API failed, falling back to HTML parsing... 0.244 Attempting to resolve latest version from releases page HTML... 0.331 Failed to resolve version from HTML, using known fallback version... 0.332 ERROR: Feature "OpenCode" (Unknown) failed to install! Look at the documentation at https://opencode.ai/docs for help troubleshooting this error. ------

[2026-01-03T03:52:18.980Z] Dockerfile.extended:24

23 |
24 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=opencode_0,target=/tmp/build-features-src/opencode_0
25 | >>> cp -ar /tmp/build-features-src/opencode_0 /tmp/dev-container-features
26 | >>> && chmod -R 0755 /tmp/dev-container-features/opencode_0
27 | >>> && cd /tmp/dev-container-features/opencode_0
28 | >>> && chmod +x ./devcontainer-features-install.sh \

[2026-01-03T03:52:18.980Z] 29 | >>> && ./devcontainer-features-install.sh
30 | >>> && rm -rf /tmp/dev-container-features/opencode_0
31 |

ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/opencode_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/opencode_0 && cd /tmp/dev-container-features/opencode_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/opencode_0" did not complete successfully: exit code: 1

[2026-01-03T03:52:18.984Z] Exit code 1
[-] Failed to launch container:

Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-runner/container-features/0.80.3-1767412329351 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:ubuntu --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-runner/container-features/0.80.3-1767412329351/Dockerfile.extended -t vsc-1767412328597-acedafda425670a23d007a146a17b79e6ca96ec4f735dddbcaa8e59d0cfbc49c-features /tmp/devcontainercli-runner/empty-folder

fix the script for installing opencode. I think the issue has to do or with a rename of files on the opencode gh or something similar. Don't change the behaviour of the script. Just validate that it is pulling the correct binary, that it exists and that it installs</issue_description>

<agent_instructions>i want to keep the flow how i install the application. don't change it. validate the url is okay, the type of retrieve file is okay. Focus only on opencode feature. Create a new patch version after fix</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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>
Copilot AI changed the title [WIP] Fix OpenCode features installation issue fix: correct opencode binary source repository Jan 4, 2026
Copilot AI requested a review from jsburckhardt January 4, 2026 03:48
@jsburckhardt jsburckhardt marked this pull request as ready for review January 4, 2026 03:54
@jsburckhardt jsburckhardt merged commit f736315 into main Jan 4, 2026
103 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode features failing

2 participants