Repository navigation
fix(sse): a partial OpenCode account sync no longer rejects the other keyless free models (#15540) - #16042
Draft
diegosouzapw wants to merge 1 commit into
Draft
fix(sse): a partial OpenCode account sync no longer rejects the other keyless free models (#15540)#16042diegosouzapw wants to merge 1 commit into
diegosouzapw wants to merge 1 commit into
Conversation
… keyless free models (#15540) A real OpenCode connection whose model sync returned a single model made that list authoritative, so combo targets addressed as oc/<model> were skipped with "model is not in the live catalog" even though the keyless free tier serves them. OpenCode now opts out of the authoritative live catalog. Test: with a one-model synced catalog, oc/ and opencode/ prefixed free models resolve; with no opencode row, the forced noauth pin still yields the synthetic credentials (guard, did not reproduce the reporter's 503).
This branch has not been deployed
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.
What
A real OpenCode connection whose model sync returns a single model made that list the authoritative live catalog for
opencode. Combo targets addressed asoc/<model>were then skipped withmodel is not in the live catalog, even though the keyless Free tier serves them.Reporter's log (discussion #15540, clean install, only free providers):
ModelSync: OpenCode Account 1: ✓ 1 models, then 9 of 10auto/claude-opustargets skipped with that message; every request ended in 503.Change
opencoderegistry entry getsliveCatalogAuthoritative: false(the same opt-outvertex,command-codeandoneminaialready use), so a partial discovery informs metadata but never rejects a registry model.Test (TDD)
tests/unit/opencode-free-synced-catalog-and-no-connection-15540.test.tsoc/andopencode/free models must resolve. Before the changeoc/muse-spark-1.2failed with "not available in the active live catalog for provider 'opencode'".noauthpin, the synthetic keyless credentials still come back.Ran with 160 neighbouring catalog/route tests: all pass.
Not covered
The reporter's second symptom (all 10 targets
no credentials available or model excludedafter deleting the connection) is not reproduced by test B, so this PR does not claim to fix it. It stays open in discussion #15540 and #15889 (missing log lines). The 403 from the first report was not present in these logs either.Refs #15540. Does not close it.