fix(cli): support OpenCode V2 config format in setup-opencode (#11070) - #11079
Merged
diegosouzapw merged 1 commit intoAug 22, 2026
Merged
diegosouzapw merged 1 commit into
diegosouzapw merged 1 commit into
Conversation
rqzbeh
force-pushed
the
fix/opencode-v2-config-support
branch
3 times, most recently
from
August 22, 2026 15:02
7e88e01 to
55da60f
Compare
diegosouzapw
force-pushed
the
fix/opencode-v2-config-support
branch
from
August 22, 2026 19:00
9f686b6 to
4decd59
Compare
diegosouzapw
merged commit Aug 22, 2026
9a67185
into
diegosouzapw:release/v3.8.50
5 of 7 checks passed
diegosouzapw
pushed a commit
that referenced
this pull request
Aug 23, 2026
…0964) Merged after conflict triage: the six base-red repair files (vi.json, opencode.ts JSDoc, context-manager test, the three webhook dispatcher tests, the uncloseai orphan-test rename) were already drained on the tip by today's #11130/#11157/#11160/#11113 — those hunks resolved to the tip shape. What lands is the production-fix set: GLM transport-aware Anthropic headers, Claude Code-compatible model-listing rejection, combo live-test single-probe, zero-cost Auto-Combo interval normalization, recovery-clearing union handling, LLMLingua real-path compare, macOS netstat PID discovery, AI Horde R2 strict public-host validation. Sweep of every touched test file: 243/243 green; typecheck + file-size clean. (guide-settings-route's 4 reds reproduce on the pure tip — pre-existing drift from #11079, not from here.) Thank you @backryun!
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…ouzapw#11070) (diegosouzapw#11079) Cherry-picked the value commit (55da60f) onto the current tip, dropping the stale base-red sync commits. Focused tests: opencode-v2-config-11070 + merge-provider-guard + config-dir-single-source 12/12; mutation coverage gate no-drift (new test registered in tap.testFiles by the PR itself). Fixes diegosouzapw#11070 — setup-opencode now emits both V1 and V2 blocks. Thank you @rqzbeh!
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…egosouzapw#10964) Merged after conflict triage: the six base-red repair files (vi.json, opencode.ts JSDoc, context-manager test, the three webhook dispatcher tests, the uncloseai orphan-test rename) were already drained on the tip by today's diegosouzapw#11130/diegosouzapw#11157/diegosouzapw#11160/diegosouzapw#11113 — those hunks resolved to the tip shape. What lands is the production-fix set: GLM transport-aware Anthropic headers, Claude Code-compatible model-listing rejection, combo live-test single-probe, zero-cost Auto-Combo interval normalization, recovery-clearing union handling, LLMLingua real-path compare, macOS netstat PID discovery, AI Horde R2 strict public-host validation. Sweep of every touched test file: 243/243 green; typecheck + file-size clean. (guide-settings-route's 4 reds reproduce on the pure tip — pre-existing drift from diegosouzapw#11079, not from here.) Thank you @backryun!
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
Fixes #11070 where
omniroute setup-opencodegenerated only OpenCode V1 config (provider.omniroute), which caused OpenCode 2 (opencode2) to reject the config block as invalid.Changes
src/shared/services/opencodeConfig.ts: ImplementedbuildOpenCodeV2ProviderConfigto output OpenCode V2 format (providers.omniroutewithpackage,settings.baseURL,settings.apiKey, andmodelslimits), and updatedbuildOpenCodeConfigDocument,mergeOpenCodeConfig, andmergeOpenCodeConfigTextto emit both V1 and V2 definitions for full backwards & forwards compatibility.tests/unit/opencode-v2-config-11070.test.ts: Added automated unit test suite asserting that generated/merged OpenCode documents produce valid V1 (provider.omniroute) and V2 (providers.omniroute) sections and preserve existing properties.Verification
node --import tsx/esm --test tests/unit/opencode-v2-config-11070.test.ts(2/2 passed)node --import tsx/esm --test tests/unit/opencode-merge-provider-guard.test.ts tests/unit/t40-opencode-cli-tools-integration.test.ts tests/unit/opencode-config-dir-single-source.test.ts(passed)npm run check:mutation-test-coverage(passed)npm run check:dashboard-typecheck(passed)npm run check:open-sse-typecheck(passed)