Skip to content

feat: add skip-if-present guard to opencode harness install script (v0.1.13.dev2)#1176

Draft
rasdani wants to merge 1 commit intomainfrom
feat/prebake-opencode-guard
Draft

feat: add skip-if-present guard to opencode harness install script (v0.1.13.dev2)#1176
rasdani wants to merge 1 commit intomainfrom
feat/prebake-opencode-guard

Conversation

@rasdani
Copy link
Copy Markdown
Contributor

@rasdani rasdani commented Apr 18, 2026

Summary

  • Add existence check guard in build_install_script(): if $HOME/.opencode/bin/opencode already exists, skip the download entirely
  • Bump version to 0.1.13.dev2

This enables Docker image pre-baking to work: when the OpenCode binary is baked into the sandbox image at build time, the harness no longer re-downloads it at rollout start, saving ~10-30s per rollout and eliminating transient GitHub download failures.

Without this guard, the pre-baked binary gets overwritten on every rollout, negating the optimization.

🤖 Generated with Claude Code

…o 0.1.13.dev2

When the OpenCode binary is pre-baked into the sandbox Docker image, the
harness install script previously re-downloaded it on every rollout, negating
the pre-bake benefit. This guard checks for an existing binary first and skips
the download if found at \$HOME/.opencode/bin/opencode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant