feat(opencode): add optional runtime overlay#3761
Open
Danigm-dev wants to merge 26 commits intosimstudioai:stagingfrom
Open
feat(opencode): add optional runtime overlay#3761Danigm-dev wants to merge 26 commits intosimstudioai:stagingfrom
Danigm-dev wants to merge 26 commits intosimstudioai:stagingfrom
Conversation
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.
Summary
Adds OpenCode as an optional Sim capability without changing the default Sim deployment path or base UX.
This PR introduces:
OPENCODE_REPOSITORY_ROOTcontract so Sim can also target compatible external OpenCode deploymentsThe default Sim experience remains unchanged:
docker-compose.local.ymlis unchangeddocker-compose.prod.ymlis unchangedNEXT_PUBLIC_OPENCODE_ENABLED=trueType of Change
Testing
timeout 90s bunx vitest run blocks/blocks.test.tsfromapps/simbunx vitest run lib/opencode/service.test.ts app/api/opencode/repos/route.test.ts app/api/tools/opencode/prompt/route.test.tsfromapps/simdocker compose -f docker-compose.local.yml -f docker-compose.opencode.local.yml configenv OPENCODE_SERVER_PASSWORD=change-me docker compose -f docker-compose.prod.yml -f docker-compose.opencode.yml configReviewer focus:
OPENCODE_REPOSITORY_ROOThandling for external deploymentsChecklist
Screenshots/Videos
Not included. The OpenCode block is hidden by default and only appears when
NEXT_PUBLIC_OPENCODE_ENABLED=true. Manual validation covered both states and a successful prompt execution flow.