Skip to content

fix(opencode.ai): improve install robustness and test coverage#273

Merged
sebst merged 2 commits intomainfrom
copilot/fix-opencode-ai-installation
Apr 21, 2026
Merged

fix(opencode.ai): improve install robustness and test coverage#273
sebst merged 2 commits intomainfrom
copilot/fix-opencode-ai-installation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

The opencode.ai feature has had recurring install failures traced to accumulated technical debt: a non-standard debian_get_arch() implementation with an unscoped arch variable, missing apt_get_cleanup at the end of install(), and a test that only checks file existence rather than binary execution.

Changes

  • install.sh: Add local arch in debian_get_arch() to prevent variable leak under set -o allexport; remove stale commented-out dpkg line; add apt_get_cleanup call at end of install() to match the standard pattern used by fzf, starship.rs, and others
  • test/opencode.ai/test.sh: Replace existence-only check with opencode --version to catch runtime failures (missing libs, wrong binary, broken extraction)
  • devcontainer-feature.json / root README.md: Version bump 1.0.61.0.7

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: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i debian:latest . (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i ubuntu:latest . --property=Memor--noprofile ls -alF�� /var/log -collect-logs er n (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i mcr.microsoft.com/devcontainers/base:ubuntu . ocker grep -F la/TWCA_Global_Root_CA.crt 1.crt /usr/bin/grep (dns block)
  • docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i debian:latest . (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i ubuntu:latest . --property=Memor--noprofile ls -alF�� /var/log -collect-logs er n (dns block)
  • eastus.data.mcr.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i mcr.microsoft.com/devcontainers/base:ubuntu . ocker grep -F la/TWCA_Global_Root_CA.crt 1.crt /usr/bin/grep (dns block)
  • opencode.ai
    • Triggering command: /usr/bin/curl curl -fsSL REDACTED bash --no�� --noprofile (dns block)

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

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix installation issue with opencode.ai feature fix(opencode.ai): improve install robustness and test coverage Apr 21, 2026
Copilot AI requested a review from sebst April 21, 2026 09:20
Copy link
Copy Markdown
Member

@sebst sebst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implement the suggested changes

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 21, 2026

Implement the suggested changes

Done in d896f45. Applied all three changes:

  1. install.shdebian_get_arch() now uses local arch (prevents leak under set -o allexport), removed the stale commented-out dpkg line, fixed indentation; added apt_get_cleanup at the end of install()
  2. test.sh — replaced the file-existence check with opencode --version to verify the binary actually runs
  3. Version — bumped 1.0.61.0.7 in both devcontainer-feature.json and root README.md

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: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i debian:latest . (dns block)
  • docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/devcontainer features test --skip-scenarios -f opencode.ai -i debian:latest . (dns block)

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

Copilot AI requested a review from sebst April 21, 2026 09:45
@sebst sebst marked this pull request as ready for review April 21, 2026 09:46
@sebst sebst merged commit 290924e into main Apr 21, 2026
7 checks passed
@sebst sebst deleted the copilot/fix-opencode-ai-installation branch April 21, 2026 09:55
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.

Feature opencode.ai fails to install

2 participants