Skip to content

factory: the server agent defaults to OpenRouter when no base URL is set - #2651

Merged
santoshkumarradha merged 2 commits into
work/teamsfrom
fix/d9-agent-base-url
Nov 16, 2026
Merged

santoshkumarradha merged 2 commits into
work/teamsfrom
fix/d9-agent-base-url

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

On an organization server started without CODEAF_BASE_URL, every server-agent turn failed with "provider base URL is required": factoryWorkstreamAgentBaseURL returned "" (meaning OpenRouter) and internal/provider/client.go refuses 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's base_url is still never read.

Test: TestTheServerAgentDefaultsToOpenRouterWhenNoBaseURLIsSet (fails before: ""; passes after). Found by the teams demo film rehearsal, defect D9 (~/work/teams-wave/film/DEFECTS.md).

santoshkumarradha and others added 2 commits November 15, 2026 22:15
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]>
@santoshkumarradha
santoshkumarradha merged commit e884b05 into work/teams Nov 16, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the fix/d9-agent-base-url branch November 16, 2026 03:26
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant