Repository navigation
fix(opencode): add a flag to skip the config dependency install - #208
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…irectory Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
At each start, bcode installs
@opencode-ai/plugin@<bcode version>in each config directory. A release build asks for a version that does not exist on npm, such as0.1.21-bu4-family.1. So the install always fails, but first it downloads the full version list of the package: 27.7 MB, 3.4 MB compressed.In the cloud, each agent sandbox starts with an empty cache and has 2 config directories. A production flow log (2026-12-03, 34 minutes) shows 2,412 of these downloads, 8.5 GB. That is about 13% of the NAT gateway traffic, about 600 USD per month.
What
OPENCODE_DISABLE_CONFIG_INSTALL=1skips this install of the server config. Without the variable, nothing changes. The separate install of the TUI config stays, becausebcode servedoes not load it.The cloud worker sets the variable after it uses a bcode release with this change.
Proof
node_moduleswith it.bun run typecheckpasses inpackages/opencodeandpackages/core.🤖 Generated with Claude Code