Repository navigation
factory: the server agent defaults to OpenRouter when no base URL is set - #2651
Merged
Merged
Conversation
On an organization server started without CODEAF_BASE_URL, every server agent turn failed with "provider base URL is required": the runner passed an empty base URL, meaning OpenRouter, and the provider client refuses an empty one. Unset now means OpenRouter's own address (config.DefaultBaseURL), the one provider an organization key is kept for; a set variable is still the operator's own proxy. The server profile's base_url is still not read. Found by the teams demo film rehearsal (defect D9). Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]>
ZeroPoint95
pushed a commit
that referenced
this pull request
Nov 24, 2026
…set (#2651) * factory: the server agent defaults to OpenRouter when no base URL is set On an organization server started without CODEAF_BASE_URL, every server agent turn failed with "provider base URL is required": the runner passed an empty base URL, meaning OpenRouter, and the provider client refuses an empty one. Unset now means OpenRouter's own address (config.DefaultBaseURL), the one provider an organization key is kept for; a set variable is still the operator's own proxy. The server profile's base_url is still not read. Found by the teams demo film rehearsal (defect D9). Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]> * changes: name #2651's fix Assisted-by: CodeAF Co-Authored-By: CodeAF <[email protected]> --------- Co-authored-by: CodeAF <[email protected]>
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.
On an organization server started without
CODEAF_BASE_URL, every server-agent turn failed with "provider base URL is required":factoryWorkstreamAgentBaseURLreturned "" (meaning OpenRouter) andinternal/provider/client.gorefuses an empty base URL. The GCP demo server sets no such variable, so server mode was broken there.Unset now resolves to
config.DefaultBaseURL(OpenRouter), the one provider an organization key is kept for; a set variable is still the operator's own proxy; the server profile'sbase_urlis still never read.Test:
TestTheServerAgentDefaultsToOpenRouterWhenNoBaseURLIsSet(fails before:""; passes after). Found by the teams demo film rehearsal, defect D9 (~/work/teams-wave/film/DEFECTS.md).