fix(core): resolve fallback model lazily after custom providers register - #349
Open
marcclefas-code wants to merge 2 commits into
Open
fix(core): resolve fallback model lazily after custom providers register#349marcclefas-code wants to merge 2 commits into
marcclefas-code wants to merge 2 commits into
Conversation
added 2 commits
August 11, 2026 09:19
The no-model fallback computed defaultModelForHarness once at boot, before the custom-provider registry was populated. For harness=opencode that rejected the configured deepseek-v4-flash and fell through to the first selectable OpenAI base model (gpt-5.6-sol), which LiteLLM rejected with 'Invalid model name'. Make fallback.modelId a lazy getter so it re-evaluates after setCustomProviders registers custom models. Also thread customProviders + refreshCustomProviders through createServer and pass providerBaseUrls to the OpenCode harness so the inner CLI reaches LiteLLM.
Layer config pins HARNESS=opencode, OPENCODE_MODEL/PI_MODEL=deepseek-v4-flash, LiteLLM gateway (144.91.126.111:3037) as the OpenAI-compatible provider, and the local docker sandbox. Dockerfile audit-level relaxed moderate->critical so builds aren't blocked on non-critical advisories.
Author
|
Hi maintainers — requesting review for this PR. It carries the argentic sandbox pilot deployment work from server2 ( Changes (2 commits, +75/-6, 7 files):
Both commits are cleanly rebased onto latest |
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.
Rebases the two argentic deployment commits (fix + deploy layer) onto the latest origin/main.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.