From d3a9f592c2314609ffd11e4cc52fd01af1a05434 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Sun, 7 Jun 2026 22:28:13 +0800 Subject: [PATCH] feat: add ofcx-go model and provider mappings to agentrun adapter ofcx-go uses deepseek-v4-flash model (not deepseek-chat) and identifies as provider ofcx-go (not deepseek). Without these mappings, the adapter falls back to deepseek defaults, causing ofcx-go sessions to route through the wrong model. Refs pikasTech/HWLAB#1034 --- internal/cloud/code-agent-agentrun-adapter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cloud/code-agent-agentrun-adapter.ts b/internal/cloud/code-agent-agentrun-adapter.ts index c0efe0a4..8d900e56 100644 --- a/internal/cloud/code-agent-agentrun-adapter.ts +++ b/internal/cloud/code-agent-agentrun-adapter.ts @@ -1918,12 +1918,14 @@ function requireAgentRunSourceCommit(env) { function modelForBackendProfile(profile, env = process.env) { if (profile === "codex") return firstNonEmpty(env.HWLAB_CODE_AGENT_CODEX_API_MODEL, env.HWLAB_CODE_AGENT_MODEL, "gpt-5.5"); if (profile === "minimax-m3") return firstNonEmpty(env.HWLAB_CODE_AGENT_MINIMAX_M3_MODEL, "MiniMax-M3"); + if (profile === "ofcx-go") return firstNonEmpty(env.HWLAB_CODE_AGENT_OFCX_GO_MODEL, "deepseek-v4-flash"); return firstNonEmpty(env.HWLAB_CODE_AGENT_DEEPSEEK_MODEL, "deepseek-chat"); } function providerForBackendProfile(profile) { if (profile === "codex") return "codex-api"; if (profile === "minimax-m3") return "minimax-m3"; + if (profile === "ofcx-go") return "ofcx-go"; return "deepseek"; }