OmniRoute/@omniroute/opencode-plugin/tests
Diego Rodrigues de Sa e Souza 74dd34fe99
fix(cli): stop double-prefixing combo model ids in opencode plugin static catalog (#7976) (#8047)
buildStaticProviderEntry() keyed static-catalog combo entries with
opts.providerId (the OC-gate-prefixed id, e.g. "opencode-omniroute")
instead of opts.omnirouteProviderId (the bare server-facing id,
"omniroute") that the dynamic provider.models() hook already uses per
#6859. OC dispatches the static models-map key verbatim as the `model`
field of the outbound request, so a bare-slug combo key doubled up to
"opencode-omniroute/opencode-omniroute/<slug>" and OmniRoute's
parseModel() resolved credentials for the nonexistent provider
"opencode-omniroute" instead of "omniroute". Regular models were
unaffected because their raw ids already contain a slash, skipping the
prefixing branch entirely.

Swap the buildComboKey() call to use opts.omnirouteProviderId,
mirroring the dynamic hook. Adds a permanent regression test to
provider-id-routing.test.ts and aligns the pre-existing hardcoded
"opencode-omniroute/<combo-slug>" assertions in config-shim.test.ts
that had codified the buggy prefix.

Co-authored-by: Fábio Silva <13762289+fabioluissilva@users.noreply.github.com>
2026-07-21 21:38:43 -03:00
..
auth.test.ts Release v3.8.34 (#4614) 2026-06-23 03:08:29 -03:00
auto-combo-context.test.ts Release v3.8.22 (#3623) 2026-06-11 18:52:29 -03:00
combos.test.ts fix(plugin): split OC-gate provider id from OmniRoute-facing routing id (#6859) (#6900) 2026-07-11 11:21:45 -03:00
config-shim.test.ts fix(cli): stop double-prefixing combo model ids in opencode plugin static catalog (#7976) (#8047) 2026-07-21 21:38:43 -03:00
disk-snapshot-perms.test.ts fix(opencode-plugin): support separate management read token (#7885) 2026-07-20 18:48:35 -03:00
features.test.ts fix(plugin): split OC-gate provider id from OmniRoute-facing routing id (#6859) (#6900) 2026-07-11 11:21:45 -03:00
fetch-interceptor.test.ts fix(opencode-plugin): support separate management read token (#7885) 2026-07-20 18:48:35 -03:00
fork-features.test.ts feat(opencode-plugin): per-prefix API format + debug logging + free-label normaliser (3 mrmm-fork backports) (#3420) 2026-06-08 18:51:22 -03:00
gemini-sanitize.test.ts Release v3.8.40 2026-06-29 08:40:06 -03:00
management-read-token.test.ts fix(opencode-plugin): support separate management read token (#7885) 2026-07-20 18:48:35 -03:00
multi-instance.test.ts Release v3.8.34 (#4614) 2026-06-23 03:08:29 -03:00
options-schema.test.ts Release v3.8.2 (#2503) 2026-05-23 01:46:59 -03:00
provider-id-routing.test.ts fix(cli): stop double-prefixing combo model ids in opencode plugin static catalog (#7976) (#8047) 2026-07-21 21:38:43 -03:00
provider.test.ts fix(plugin): split OC-gate provider id from OmniRoute-facing routing id (#6859) (#6900) 2026-07-11 11:21:45 -03:00
scaffold.test.ts Release v3.8.34 (#4614) 2026-06-23 03:08:29 -03:00
usable-combo.test.ts Release v3.8.2 (#2503) 2026-05-23 01:46:59 -03:00