Open
Conversation
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.
Summary
OpenCodeEnvsmall_modelto$OPENAI_MODEL.vf.OpenCodesmall_modeltointercepted/model, coveringenvironments/opencode_harbor.Context
PR #1323 already merged the composable OpenCode harness change. This follow-up covers the remaining affected OpenCode config builders so title/summary sub-agents stay on the intercepted provider instead of falling through to OpenCode's hosted free small model path.
Affected code locations
verifiers/envs/experimental/opencode_env.pyverifiers/v1/packages/harnesses/opencode.pyValidation
uv run ruff check verifiers/envs/experimental/composable/harnesses/opencode.py verifiers/envs/experimental/opencode_env.py verifiers/envs/experimental/opencode_rlm_env.py verifiers/v1/packages/harnesses/opencode.pyuv run pytest tests/test_opencode_rlm_env.py tests/test_opencode_harbor.py tests/test_v1_harbor_cli.py -qruff check,ruff format,ty (ci parity)Note
Low Risk
Low risk: config-only change that pins OpenCode sub-agent model selection; main behavior change is preventing fallback to OpenCode’s hosted small model, which could affect outputs but not security-critical logic.
Overview
Pins OpenCode’s
small_modelin legacy config builders so title/summary sub-agents stay on the intercepted provider instead of falling back to OpenCode’s hosted small model.This sets
small_modelto$OPENAI_MODELinOpenCodeEnv.build_opencode_configand tointercepted/modelin v1build_opencode_config(used by thevf.OpenCodeharness).Reviewed by Cursor Bugbot for commit 4cb8639. Bugbot is set up for automated code reviews on this repo. Configure here.